Skip to main content

Howdy, I'm trying to connect to an API using this documentation:

 

https://github.com/ubahnverleih/WoBike/blob/master/Bird.md

It seems to work fine through Postman and other API callers, but not FME. I keep getting a bad request on the POST portion.

Hi @lladefian

 

 

Does the response in FME give you any more information? Normally APIs give a reason why the response is bad.

 

It looks like the url you're connecting to is HTTPS, so you may want to try setting 'Verify SSL Certificates' to No, under HTTP Client Options and see fi that works.

Hi @lladefian

 

 

Does the response in FME give you any more information? Normally APIs give a reason why the response is bad.

 

It looks like the url you're connecting to is HTTPS, so you may want to try setting 'Verify SSL Certificates' to No, under HTTP Client Options and see fi that works.
was thinking the same thing, but the error is just 1.1 400. I'll check the ssl settings.

 

 


I tried the ssl setting and no luck. Do you know the correct format for json in the response body setting?  I feel like I may have that wrong.

The POST Request-Body is the following JSON: 

{"email": "<EMAIL-ADDRESS>"}


Works for me.

Please note that when filling Content-type in the header and in the field it gives me a 400. I suspect that is the problem.

Workspace (2018.1): httpcaller20181.fmw

Please include workspace and/or printscreens of parameters next time. More efficient to reproduce / solve.


Works for me.

Please note that when filling Content-type in the header and in the field it gives me a 400. I suspect that is the problem.

Workspace (2018.1): httpcaller20181.fmw

Please include workspace and/or printscreens of parameters next time. More efficient to reproduce / solve.

Got it, the added content type in the body was the issue. Thanks!

 

 


Reply