GithubHelp home page GithubHelp logo

kontist / js-sdk Goto Github PK

View Code? Open in Web Editor NEW
13.0 8.0 1.0 3.56 MB

JavaScript SDK for connecting to Kontist

License: Other

TypeScript 71.93% JavaScript 28.07%
banking api graphql oauth2 typescript javascript sdk kontist javascript-sdk

js-sdk's People

Contributors

amodes avatar caglaralkiss avatar campalo avatar dananussair avatar dependabot[bot] avatar dmytroyarmak avatar eslam-m avatar fabribet avatar francisauwerda avatar goodfellamilos avatar haipham-kontist avatar hihuz avatar jablonskipj avatar johannespfeiffer avatar kolyose avatar lera avatar mbayraktr avatar mkhstar avatar ogulcancelik avatar p-janik avatar pstockschlaeder avatar richthegeek avatar sepehrdaddev avatar sinahashemy avatar temhota avatar teodorpatras avatar tonyskn avatar ugurgumushan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

corbolais

js-sdk's Issues

TypeError: Redirected path should match configured path, but got: /en/payment-list

Good afternoon, after the user logs into the kontist, an error appears about the wrong redirected path, what could be the problem?
Yesterday everything worked, the code after that did not change the code and the redirected path to the kontist too, connected the SDK through the CDN and downloaded it through the npm, tried different versions, but the error is the same " Redirected path should match configured path, but got: /en/payment-list"
Below is the code
const client = new Kontist.Client({ clientId: "*********************", redirectUri: "https://fiyou.de/payment-list", scopes: ["transactions", "transfers"], state: sessionStorage.getItem("state"), verifier: sessionStorage.getItem("verifier") });

Intermittent Connection Error on API after Multiple Page Reloads

Description

I am encountering an intermittent connection error when interacting with the API. This error appears especially after reloading the page multiple times in quick succession. It seems related to potential rate limiting or token management issues.

Steps to Reproduce

  1. Load the page and successfully make an API call.
  2. Reload the page multiple times rapidly.
  3. Observe that the error message appears after several reloads.

Expected Behavior

The API should handle rapid reloads gracefully, possibly with managed retry logic or better error handling.

Actual Behavior

An error message appears, suggesting a failure in connection or rate limiting being exceeded.

Additional Information

  • Error message:
Subscribing to transactions...
[Nest] 64188  - 06/14/2024, 8:02:34 PM     LOG [NestApplication] Nest application successfully started +70ms
refreshToken <!--token-->

/Users/onurunal/Projekte/Lernen/entruempelung/entruempelung-be/node_modules/popsicle-transport-http/src/index.ts:604
        new ConnectionError(req, `Unable to connect to ${url.host}`, err)
        ^
ConnectionError: Unable to connect to api.kontist.com
    at ClientHttp2Stream.onRequestError (/Users/onurunal/Projekte/Lernen/entruempelung/entruempelung-be/node_modules/popsicle-transport-http/src/index.ts:604:9)
    at Object.onceWrapper (node:events:628:26)
    at ClientHttp2Stream.emit (node:events:525:35)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
  • Frequency: Occurs after 3-4 rapid reloads.

Has anyone else encountered this intermittent connection issue, or can someone suggest further steps to troubleshoot or resolve this behavior? Any insights or guidance would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.