Post request returns unsupported media type
rei-sys opened this issue · 4 comments
rei-sys commented
Describe the bug
Using aiosonic I get a 415 status code.
To Reproduce
- set 'Content-Type': "application/json" and "Accept": "application/json" as headers
- add a json data
Expected behavior
Getting a 400 status
Screenshots
The first status code is from aiohttp with the same headers and json, the second one is from aiosonic using the same headers and json
Desktop (please complete the following information):
- OS: Windows
- Browser kk
- Version kk
Additional context
nothing.
rei-sys commented
Tested on both Windows and Linux
sonic182 commented
Hi! two questins
can you provide minimal sample code?
did you check which headers are being obtained in your target server?
Best,
Johanderson