Forum Discussion
th3h0bb5
7 years agoResolver II
API error 415: Unsupported Media Type
I'm wanting to connect to an API that provides a temporary auth token but am getting a 415: Unsupported media type error when I try to retrieve the token. Here's my code: let
authURL = "https...
5AMsan
3 years agoFrequent Visitor
For search engine results people who found this page, it's generally a matter of bad headers, you must declare sent data types ( ie. #"Content-type" = "Application/json" for JSON) in your header when using POST method.