on 2025 Feb 21 8:13 AM
Hello All,
I’m currently working on a CAPM (Cloud Application Programming Model) project, where I’m trying to integrate Shopify using its API endpoints. The goal is to retrieve data by passing query parameters while using authentication credentials such as:
Everything seems straightforward, but when I attempt to make a request, I keep running into this error:
read tcp 100.96.8.158:41620->23.227.38.74:443: read: connection reset by peer\
Sample Code:
Issue:
Thanks,
Manoj Kumar.
Request clarification before answering.
Hi Manoj,
Are you trying to preview your CAP application from SAP Business Application Studio dev space? If you do, I suggest also testing the same request directly from the dev space Terminal (using curl command for example), or from the dev space REST client (using .http file).
Thanks,
Rotem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj, Can you please try to create a connection hook point via package.json and use the end points in the service implementation?
"cds": {
"requires": {
"weatherservice": {
"kind": "rest",
"credentials": {
"url": "https://api.openweathermap.org",
"requestTimeout": 30000
}
}
}
}you may find the sample code to consume rest API in CAP here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.