cancel
Showing results for 
Search instead for 
Did you mean: 

Connection Rejected Error in CAP

ArkadeepNandi
Newcomer
0 Kudos
93

I created a CAP application in SAP BAS in SAP Trial account. When I try to create connection it is showing this error.

I started the server using the command cds watch and when I try to click send request in the .http file shown here getting the marked error.

ArkadeepNandi_0-1739954454943.png

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Dino
Explorer
0 Kudos

Remove the ' from the URI.
Just write:

@baseUrl = http://localhost:4004/odata/v4

GET {{baseUrl}}/hello
###

// More request

 

MioYasutake
Active Contributor
0 Kudos

@ArkadeepNandi 

What happens if you change the request URL to {{baseUrl}}/hello?