sonic182/aiosonic

Post request returns unsupported media type

rei-sys opened this issue · 4 comments

Describe the bug
Using aiosonic I get a 415 status code.

To Reproduce

  1. set 'Content-Type': "application/json" and "Accept": "application/json" as headers
  2. add a json data

Expected behavior
Getting a 400 status

Screenshots
image
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.

Tested on both Windows and Linux

Hi! two questins

can you provide minimal sample code?
did you check which headers are being obtained in your target server?

Best,
Johanderson

It may be solved in #235, try with aiosonic 0.9.6 @rei-sys