oduwsdl / archivenow

A Tool To Push Web Resources Into Web Archives
MIT License
403 stars 42 forks source link

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

Closed npdoty closed 7 years ago

npdoty commented 7 years ago

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 commented 7 years ago

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