Why Is Error "unsupported media Type" Reported When I Subimt a SQL Job?
In the REST API provided by DLI, the request header can be added to the request URI, for example, Content-Type.
Content-Type indicates the request body type or format. The default value is application/json.
URI for submitting a SQL job: POST /v1.0/{project_id}/jobs/submit-job
Content-Type can be only application/json. If Content-Type is set to text, "unsupported media Type" is displayed.
APIs FAQs
- How Do I Obtain the AK/SK Pair?
- How Do I Obtain the Project ID?
- Why Is Error "unsupported media Type" Reported When I Subimt a SQL Job?
- Are Project IDs of Different Accounts the Same When They Are Used to Call APIs?
- What Can I Do If an Error Is Reported When the Execution of the API for Creating a SQL Job Times Out?
- What Can I Do If Chinese Characters Returned by an API Are Garbled Characters?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more