Query returning 415 (Unsupported Media Type)

I am sending a query from a python script and I am getting back a 415 error, which is Unsupported Media Type. If I paste the same query into the browser it works fine. I have verified that the user and password are correct. What could be the issue?

Are you able to run something like Wireshark to see the Content-Type and Content-Encoding headers on the request? The 415 response implies that the python script is sending the query in a format that the server will not accept.

I found the issue. I had left the DB name off the URL. When added that it worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.