instamanage icon indicating copy to clipboard operation
instamanage copied to clipboard

No JSON could be decoded

Open gurisko opened this issue 7 years ago • 7 comments

It seems that Instagram changed their endpoint. followers (link) gets 404 back.

console output:

attempting login...
logged in successfully
building follower list...
Traceback (most recent call last):
  File "instamanage.py", line 419, in <module>
    menu()
  File "instamanage.py", line 94, in menu
    start_sync()
  File "instamanage.py", line 135, in start_sync
    data = json.loads(followers.text)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
logging out...

gurisko avatar Jun 15 '17 07:06 gurisko

Well that's lame :/

realtux avatar Jun 15 '17 08:06 realtux

Well that's lame :/

Exactly what I was thinking haha

I think they changed their endpoint, I read about them deprecating their /query route...

The graphql api seems available at /graphql/query now.

tducasse avatar Jun 16 '17 07:06 tducasse

yes, it looks like they are using /graphql/query. rather than a custom string as a post var, they are doing everything as querystring params. the response looks similar. this probably isn't that hard to fix.

realtux avatar Jun 16 '17 17:06 realtux

Is anyone looking into this?

gurisko avatar Jul 26 '17 14:07 gurisko

Same issue here...

danperrout avatar Oct 18 '17 14:10 danperrout

@ebrian So have you fixed it yet?

katepratik avatar Dec 23 '17 09:12 katepratik

@katepratik No. This project is no longer maintained. I personally don't have any free time to get this fixed. You are welcome, of course, to fork the repo and make the fix. I'm sure it wouldn't take longer than an hour or two.

realtux avatar Dec 23 '17 19:12 realtux