cancel
Showing results for 
Search instead for 
Did you mean: 

Connect SAP Build Application to a public API

RAP1705
Explorer
0 Kudos

sap-build-part1.pngsap-build-part2.pngCitizen or Professional builders: Currently, I'm learning via undertaken the tutorial Connect SAP Build Application to a public API as per attached image No1. Under the "step run test", I received the following error message:

Error: TypeError: Failed to fetch. Does the server allow CORS?status: undefined


Resource settings for Get record (GET)
-------------------
Resource URL: https://world.openfoodfacts.org/api/v0
Relative path: /product/{6416453061361}.json

I've got no idea how to fix this issue. I read this info CORS Status error REST API SAP build Apps. I cannot understand what is required. Any help is welcome.

Accepted Solutions (0)

Answers (2)

Answers (2)

narendran_nv
Explorer
0 Kudos

You may have to recheck your config, cause your relative path in the log shown looks incorrect.

/product/{6416453061361}.json

I'm curious on how you managed to get it with the curly braces. Maybe if you are still facing this issue can you post a screenshot on your config please.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

I tried it now and it also did not work but then I found this:

Lets wait till the service comes back and then test again.