Closed npdoty closed 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
Content-Type
application/json
It used to work before without explicitly setting the Content-Type. I added it and the perma.cc handler should work now. Thanks.
All use of the perma.cc handler via Python fails with errors of the following form:
It looks like Perma.cc requires explicitly setting
Content-Type
toapplication/json
, as per: https://perma.cc/docs/developer#create-an-archive