kontist / js-sdk Goto Github PK
View Code? Open in Web Editor NEWJavaScript SDK for connecting to Kontist
License: Other
JavaScript SDK for connecting to Kontist
License: Other
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") });
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.
The API should handle rapid reloads gracefully, possibly with managed retry logic or better error handling.
An error message appears, suggesting a failure in connection or rate limiting being exceeded.
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)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.