cancel
Showing results for 
Search instead for 
Did you mean: 

SAP - Connectors give Invalid URL error when trying to call the API endpoint.

Dilan_Alex
Explorer
0 Kudos

I'm implementing connector to our external system using SAP connectors. I have set up all the required fields including the base url. I have created and resource and I'm trying to try it executing, and getting this error,

{"requestId":"66050540e4b0579815d6b4a3","providerErrorCode":400,"message":"Bad Request","providerMessage":"<HTML><HEAD>\n<TITLE>Invalid URL</TITLE>\n</HEAD><BODY>\n<H1>Invalid URL</H1>\nThe requested URL \"http&#58;&#47;&#47;&#37;5bNo&#37;20Host&#37;5d&#47;rest&#47;310&#47;OrderDetail\", is invalid.<p>\nReference&#32;&#35;9&#46;974ddb17&#46;1711605056&#46;4c8c89fa\n</BODY></HTML>\n"}

I can notice that "Host" in the url, is this supposed to be resolved automatically ? Or is that the problem ? I mean when decoded this URL it becomes like this,

http://[No Host]/rest/310/OrderDetail?

I do not understand how this "Host" is resolved to my base url. Can someone please help ?

Note : I have some pre-request hooks to modify the headers as once of the server requirement.

 

Dilan_Alex_0-1711607071299.png

 

Thanks.Dilan

 

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos
I do not yet fully understand the scenario here: is SAP Business Connector the HTTP client or the HTTP server?
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Ulrich_Schmidt,

I understand that he is talking about SAP Open Connectors... not the old SAP Business Connector. 

Initially I was mislead into that same direction when I realized he was actually having trouble building a custom Open Connector.

Best regards,
Ivan

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ivan,

ah, ok, that makes sense. In that case: do you know whether there is a tag for the Open Connectors, so we could add it to the question?

Edit: I found it, that was too easy... 😉

View Entire Topic
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @Dilan_Alex,

Is this a custom Open Connector you are trying to build?

Are you following the instructions given here:

https://community.sap.com/t5/technology-blogs-by-members/custom-connector-sap-cloud-platform-open-co...

I suppose you are familiar with the following documentation:

https://help.openconnectors.ext.hana.ondemand.com/home/element-builder-setup-properties

Best regards,
Ivan

 

Dilan_Alex
Explorer
0 Kudos
I exactly following this reference (https://help.openconnectors.ext.hana.ondemand.com/home/element-builder-setup-properties) for making this connector,