Instagram API docs invalid JSON error <p>I keep getting this error when I tried the examples in the <a href="https://github.com/Instagram/python-instagram#using-an-access-token" rel="nofollow">python-instagram</a> documentation:</p> <pre><code>from instagram.client import InstagramAPI access_token = "YOUR_ACCESS_TOKEN" client_secret = "YOUR_CLIENT_SECRET" api = InstagramAPI(access_token=access_token, client_secret=client_secret) recent_media, next_ = api.user_recent_media(user_id="userid", count=10) for media in recent_media: print media.caption.text </code></pre> <p>Error:</p> <pre><code>Traceback (most recent call last): File "&lt;input&gt;", line 1, in &lt;module&gt; File "/Users/bli1/Development/Django/CL/cherngloong/cherngloong/lib/python2.7/site-packages/instagram/bind.py", line 197, in _call return method.execute() File "/Users/bli1/Development/Django/CL/cherngloong/cherngloong/lib/python2.7/site-packages/instagram/bind.py", line 189, in execute content, next = self._do_api_request(url, method, body, headers) File "/Users/bli1/Development/Django/CL/cherngloong/cherngloong/lib/python2.7/site-packages/instagram/bind.py", line 131, in _do_api_request raise InstagramClientError('Unable to parse response, not valid JSON.', status_code=response['status']) InstagramClientError: (404) Unable to parse response, not valid JSON. </code></pre> <p>I'm not sure what is causing this error. I got my <code>access_token</code> and filled in all the parameters</p> <p>I get the same error when I try other parts of the documentation:</p> <pre><code>api = InstagramAPI(client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET') popular_media = api.media_popular(count=20) for media in popular_media: print media.images['standard_resolution'].url </code></pre>