Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perma.cc handler fails with 415 Unsupported Media Type #13

Closed
npdoty opened this issue Aug 8, 2017 · 1 comment
Closed

perma.cc handler fails with 415 Unsupported Media Type #13

npdoty opened this issue Aug 8, 2017 · 1 comment

Comments

@npdoty
Copy link

npdoty commented Aug 8, 2017

All use of the perma.cc handler via Python fails with errors of the following form:

['Error (The Perma.cc Archive): 415 Client Error: Unsupported Media Type for url: https://api.perma.cc/v1/archives/?api_key=asdfasdfasdfadf']

It looks like Perma.cc requires explicitly setting Content-Type to application/json, as per: https://perma.cc/docs/developer#create-an-archive

@maturban
Copy link
Member

maturban commented Aug 9, 2017

It used to work before without explicitly setting the Content-Type. I added it and the perma.cc handler should work now. Thanks.

@maturban maturban closed this as completed Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants