AnsweredAssumed Answered

Filemaker cURL Option not working, bogus authentification error

Question asked by Vincent_L on Aug 30, 2018
Latest reply on Aug 30, 2018 by Vincent_L

Hi,

Of course I'm doing something wrong, but I can't find why

 

So in command line this works perfectly

 

curl -X PATCH https://my.url.com/brand/TR -H 'Authorization: Bearer mylongtoken' -H 'Content-Type: application/json' -d '{"name":"truc","logo":"truc.jpg"}'

 

But I can't make it work with FileMaker Insert from URL

 

How to write the curl options ???

 

I tried the following curls options (as seen in data viewer)

 

-X PATCH -H 'Authorization: Bearer mylongtoken' -H 'Content-Type: application/json' -d {"name":"truc","logo":"truc.jpg"}' --show-error

 

or

 

-X PATCH -H 'Authorization: Bearer mylongtoken' -H 'Content-Type: application/json'  --data name=truc&logo=truc.jpg --show-error

 

and it doesn't work. It says failed authentification (which is bogus the token is fine) and throws a 1627 error, and it seems to me that the --show-error doesn't even work, because Get ( LastExternalErrorDetail ) only returns  FileMaker error: 1627

 

I'm going mad, thanks for your help

Outcomes