You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.
coreapi.exceptions.NoCodecAvailable: Unsupported media in Content-Type header 'application/json'
I noticed that everything seemed to work with the cli client. That's when I noticed that it uses force_codec and not format.
I don't know your code base so I'm not 100% if using force_code is correct in this context, but I thought I should create a ticket in case it hits anyone else.
The text was updated successfully, but these errors were encountered:
Good catch, yes. The old style was force_codec=<bool> the new style should be format=<string>. Will look into asserting that the correct type is passed.
Hi,
Great project! Finally had a chance to check this out with a real use case of my own.
I had an issue getting the instructions to work. Not sure if it was my end or not, but what worked for me was:
The error I get using format='openapi' is:
coreapi.exceptions.NoCodecAvailable: Unsupported media in Content-Type header 'application/json'
I noticed that everything seemed to work with the cli client. That's when I noticed that it uses force_codec and not format.
I don't know your code base so I'm not 100% if using force_code is correct in this context, but I thought I should create a ticket in case it hits anyone else.
The text was updated successfully, but these errors were encountered: