This repository was archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
flickrapi.upload() can't handle format "parsed-json" #93
Comments
This is still a problem. From a pdb session while debugging:
So at first it seemed like line 396 was failing to update kwargs:
I tried this with etree and parsed-json and saw the same problem for both, but when I entered interactive I was able to update kwargs. Digging a bit more, I found that 'format' is always deleted from upload requests on line 427:
So, from what I see, this looks like upload responses will never work with anything but the default response type. This seems to correlate to the Flickr API Upload documentation which states "This response is formatted in the REST API response style." And indeed, I see no error when I use:
|
The Python flickrapi documentation also says:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
FlickrAPI(..., format='parsed-json') can't handle the response, attempting to parse the response as JSON even though it's not. The documentation says the "parsed formats" are available.
The Flickr upload API seems to only respond to uploads with XML, not JSON, so it seems the JSON formats are not valid at all.
The text was updated successfully, but these errors were encountered: