Forum Discussion
(415) Unsupported media type error when using Power Query for POST request
Assuming you meant 415, unsupported media type and not 414, URI too long.
Definitely does not like your headers. Maybe play with some of the optional parameters for ToBinary?
https://docs.microsoft.com/en-us/powerquery-m/text-tobinary
ImkeF edhans you guys do much with stuff like this? Is that endpoint really expecting that in binary?
sorry that was a typo, fixed it.
that Text.ToBinary() is something I copied from other threads. If I remove it and just pass the JSON body to Content, it gives another error.
- ImkeF6 years agoCommunity Champion
Yes Anonymous ,
my bad - your original syntax looks alright. Content has to be a binary value.
Just re-check the error message and if nothing different comes up that can give a hint you should use Fiddler to compare the commands that both tools send.