question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always get 415 error

See original GitHub issue

I copied the code from this example: tinyHTTP - database integration

I tried using urlencoded and json together, each by itself, in different orders…nada, always Status 415 Unsupported Media Type

I know it’s not anything else because using body-parser’s json middleware works.

Any ideas?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
FranciscoMendes10866commented, Jun 27, 2021

@talentlessguy It’s perfect!

0reactions
talentlessguycommented, Jun 27, 2021

@FranciscoMendes10866 sorry for delays, it’s published now

Read more comments on GitHub >

github_iconTop Results From Across the Web

415 Unsupported MediaType in Spring Application - Baeldung
The 415 (Unsupported Media Type) status code indicates that the origin server is refusing to service the request because the payload is in...
Read more >
How To Fix the HTTP 415 Error on Your Website - Kinsta
To recap, the “HTTP 415” error tells you that the server won't accept a file type because it doesn't support that payload. This...
Read more >
POST JSON fails with 415 Unsupported media type, Spring 3 ...
The problem is due to the conversion process from JSON to Java, one need to have the right run time jackson libraries for...
Read more >
Why do I get and Unsupported Media Type HTTP 415 and ...
In this video you will see one of the possibilities to getting HTTP 415 Unsupported Media Type and how to solve it.
Read more >
Solved: Re: 415 Unsupported Media Type when (Java HttpPut)
415 Error indicates that you are making a request that is not allowed on that resource (PUT request not allowed, for example) or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found