-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Error: SyntaxError: Unexpected number] #2
Comments
We forked the vinapple and and we think we fixed it. |
Can you post a gist containing the native response? Originally, Vine was returning IDs greater than 32 bit as numbers. They would not parse properly, so I was wrapping them in quotes and casting them to strings before parsing. It is possible they changed something. I'd love to see what you're seeing as I've been unable to replicate here. |
https://gist.github.com/mbejda/8043214 Notice the strange integers appearing outside the quotes. |
@mbejda Thanks for your fix. I had the same problem. |
@mbejda same here, commenting out line 121 solve the error: . [Error: SyntaxError: Unexpected number] |
+1 fix it please! |
Better than commenting line 121, you should replace line 21 with:
The problem is some of these ids are not 18 chars length, so the parsed result looks like: Replacing line 21 with the code above has corrected the problem for me and I'm able to use those big Ids as strings. |
This was comitted in 9c71f2e and is now solved if anyone is feeling scared off |
I keep getting this error when I'm trying to get the users feed. [Error: SyntaxError: Unexpected number]
vine.login(loginEmail, loginPassword, function (error, client) {
console.log(client) /// user information shows up. Authenti
vine.user('958614911402057728',{page:1,size:10},function(e,c)
{
console.log(e) /////error is here
console.log(c) ////
})
});
The text was updated successfully, but these errors were encountered: