instagram-user-feed icon indicating copy to clipboard operation
instagram-user-feed copied to clipboard

Profile #1 : Unable to extract JSON data

Open WallisonBreno opened this issue 2 years ago • 12 comments

I've been getting this error when i use the getProfile function, has nothing to do with cache or authenticity of the account

WallisonBreno avatar Jun 02 '22 18:06 WallisonBreno

Hey, could you try to update to v6.15.0 version. Instagram made some changes and I (hopefully) fixed it this morning.

pgrimaud avatar Jun 02 '22 18:06 pgrimaud

hi i have such same errors on posts data fetch from :

pgrimaud/instagram-user-feed/src/Instagram/Transport/AbstractDataFeed.php Syntax error on line 61!

RoseGoli avatar Jun 02 '22 19:06 RoseGoli

hi

i have such same errors on posts data fetch from :

pgrimaud/instagram-user-feed/src/Instagram/Transport/AbstractDataFeed.php

Syntax error on line 61!

Did you tried to upgrade to 6.15?

pgrimaud avatar Jun 02 '22 20:06 pgrimaud

yes i do this the getBody result : for (;;);{"redirect":"https://www.instagram.com/p/Cc-wIYPDhUt/"}

hi i have such same errors on posts data fetch from : pgrimaud/instagram-user-feed/src/Instagram/Transport/AbstractDataFeed.php Syntax error on line 61!

Did you tried to upgrade to 6.15?

yes i do this the getBody result : for (;;);{"redirect":"https://www.instagram.com/p/Cc-wIYPDhUt/"}

RoseGoli avatar Jun 02 '22 20:06 RoseGoli

Yup, unfortunatelly Instagram is responding inconsistently when trying to get media data by calling instagram.com/p/[shorcode]?__a=1 (apparently based on login data and IP history). When isn't in the mood, will return:

for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005640913}}},"lid":"7106408698253330412"}

andreifiroiu avatar Jun 07 '22 08:06 andreifiroiu

Yup, unfortunatelly Instagram is responding inconsistently when trying to get media data by calling instagram.com/p/[shorcode]?__a=1 (apparently based on login data and IP history). When isn't in the mood, will return:

for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005640913}}},"lid":"7106408698253330412"}

there is an other way like 'graphql/query' to get posts now lib should be updated...

RoseGoli avatar Jun 08 '22 06:06 RoseGoli

lib should be updated...

Feel free to open a PR 😄

pgrimaud avatar Jun 08 '22 08:06 pgrimaud

image i dont really know how to use github but this is what i did to the pervious version of library and now its working just fine with graph api

by the way i also made a proxy response class so i could change items formate to graphql too so there would be no issue

RoseGoli avatar Jun 09 '22 10:06 RoseGoli

lib should be updated...

Feel free to open a PR 😄

hi there i wanna ask if you have a telegram account/group where we can talk maybe? it would be really cool to committee information in such platform...

RoseGoli avatar Jun 09 '22 10:06 RoseGoli

I get this error when trying to login. I have used this in local and remote server. The local server works but remote server fails. I also upgraded to 6.15

alisamie97 avatar Jul 17 '22 13:07 alisamie97

Still the same pb. Method getProfile() returns code 200 with some html as datas (probably the instagram login page) causing a Syntax error in json_decode().

There are many issues opened for the same error : https://github.com/pgrimaud/instagram-user-feed/issues/335 https://github.com/pgrimaud/instagram-user-feed/issues/318 https://github.com/pgrimaud/instagram-user-feed/issues/298

Rubberg avatar Sep 27 '22 10:09 Rubberg

This seems to be fixed in 6.16.6.

AgentSmith0 avatar Dec 31 '23 11:12 AgentSmith0