perma.cc handler fails with 415 Unsupported Media Type
npdoty opened this issue · comments
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
It used to work before without explicitly setting the Content-Type
. I added it and the perma.cc handler should work now. Thanks.