cancel
Showing results for 
Search instead for 
Did you mean: 

Get geodata with nominatim using SAP CPI

ADO
Explorer
0 Kudos

Hello,

we would like to request geodata for an address in the SAP CPI via the nominatim service.

We have set up everything accordingly in the CPI.
If we call the created CPI service via postman, we get an error in the CPI:

Access blocked
......You should in particular verify that you have set a
custom HTTP referrer or HTTP user agent that identifies your application, and
that you are not overusing the service with massive bulk requests......

Then we have set the header parameter USER-AGENT in the content modifier.

But the error still comes up.

Apparently the parameter is not passed through. In the cpi trace you can see that the parameter is in "Message before Receiver Adapter". It is then missing from "Message after Receiver Adapter".

Does anyone have any ideas?

Thanks

sunny_kapoor
Advisor
Advisor
0 Kudos

Hi alberti_2000,

Is your API working fine directly from Postman without CPI? Can you please share CPI flow screenshots as well?

Regards,

Sunny

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

Hello Arnfried,

Please mention these headers in HTTP receiver adapter( request headers section ) also then it should work.

Regards,

Sriprasad Shivaram Bhat

Answers (1)

Answers (1)

ADO
Explorer
0 Kudos

Hello,
you are my hero !!!!!

It works.




Thanks
Arnfried

Sriprasadsbhat
Active Contributor

Hello Arnfried,

If it worked please accept the right answer and close the thread!

Regards,

Sriprasad Shivaram Bhat