-
Notifications
You must be signed in to change notification settings - Fork 122
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
[SyntaxError: Unexpected end of input] while trying to get IG posts #104
Comments
I have done some digging in error, i have found that i am getting right data from Instagram but I am getting incomplete JSON object in "pagination" var in else method: I am getting the response ended like ", "profile_picture": "https://scontent.cdninstagram.com/t5" |
+1 - I am starting to see this. |
I'm seeing this where in |
Can we redo the call in case of end firing early? |
Okay, so what could be the solution for this case ? what could we do to prevent it ? |
Adding some sort of |
Hello,
I am trying to fetch IG posts of the users by using the method
var def = Q.defer();
ig.user_media_recent(user_id.toString(), {
count: 10000
},
function (err, medias, pagination, remaining, limit) {
if (!err) {
def.resolve(medias, pagination);
} else {
def.reject(_common_worker.generate_worker_error(err, {
error_type: 'IG',
ig_id: user_id,
message: "Error in fetching data from Instagram api get_user_post_timestamp method"
}, __filename));
}
});
return def.promise;
But for some users the control always go in ELSE part with error shown below:
[SyntaxError: Unexpected end of input]
The text was updated successfully, but these errors were encountered: