This is a migrated thread and some comments may be shown as answers.

Axios get error - statuscode 415

1 Answer 1971 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jiyo
Top achievements
Rank 2
Jiyo asked on 14 Oct 2019, 11:21 AM

While fetching api data using axios get method, it returns an error showing statuscode 415(Unsupported Media Type).I'm getting the expected result in postman.

In this axios request i'm passing headers aswell as body. I dont know why this error happens.

The code somewhat looks like this.

 axios
        .get(URL,{
            username:"Binu",
            headers:{
                'Content-Type': 'application/json;'
            }
        })

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 14 Oct 2019, 11:36 AM

Hello, Jiyo,

This is a forum for the KendoReact components, please address the question to the axios repository, where the package specialist and developer will be able to provide to specific answer:

https://github.com/axios/axios/issues

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jiyo
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or