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
- Load the page and successfully make an API call.
- Reload the page multiple times rapidly.
- 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
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.
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
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
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.