-
Notifications
You must be signed in to change notification settings - Fork 33
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
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:
|
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: