Solved

HttpCaller gets bad request 400

  • 5 September 2018
  • 5 replies
  • 11 views

Badge

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.

icon

Best answer by nielsgerrits 5 September 2018, 06:42

View original

5 replies

Badge +2

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.
Badge

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.

 

 

Badge

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>"}

Userlevel 6
Badge +33

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.

Badge

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