Closed louisguitton closed 8 years ago
I think this issue is a duplicate of #281 - the "Maintype was not text, image, or querystring" message is hiding the real error.
Indeed, thanks for the really quick reply! what I did is add these lines on line 270:
elif "text/html" in headers['content-type']:
result = response.json()
It's just temporary fixing but it does the trick for now.
When trying to get posts of a page, you use this endopoint: pagename?fields=posts.limit(10) Most of the posts are of this type:
But some have one field more:
When trying to retrieve Citroen.France 's last 50 posts, I get this error because of this field:
I printed the header, and it looks like this:
It looks like it's a new feature from Facebook, that the if/elif/else loop of the init.py file is not handling the way the API explorer is for example