on ‎2024 May 10 5:12 PM
Hello SAP Community,
I am working on a CAPM application and am facing performance challenges related to high-volume data uploads. To address potential timeouts and enhance performance, I experimented with Node.js's worker_threads and spawn from the child_process module. The idea is to handle the data upload processes in parallel.
However, I encountered a recurring issue when making POST calls from within a worker thread or a spawned process. The error reported is "Missing JWT token for forwardAuthToken". This error does not occur when the same POST logic is executed directly within the service.
Here’s a brief overview of my approach:
I suspect this might be related to the way authentication tokens are managed in CAP when using asynchronous modules like worker_threads or child_process.
Could anyone help clarify the correct approach to forwarding or managing JWT tokens in such scenarios, or suggest alternative strategies to handle high-volume data uploads in CAPM efficiently?
Thank you for your assistance!
Request clarification before answering.
What are you uploading to? From a client to CAP or CAP to a backend system like SAP?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.