pat310 / google-trends-api

An API layer on top of google trends
https://www.npmjs.com/package/google-trends-api
MIT License
896 stars 178 forks source link

SyntaxError: Unexpected token L #62

Closed amakaa closed 7 years ago

amakaa commented 7 years ago

Started happening today all of a sudden.

pat310 commented 7 years ago

@amakaa It seems to be working for me. Can you give me some more detail?

amakaa commented 7 years ago

Sorry I solved the issue. I found I got kicked out for making too many queries.

On Sun, Mar 26, 2017 at 10:28 PM, Patrick Trasborg <notifications@github.com

wrote:

@amakaa https://github.com/amakaa It seems to be working for me. Can you give me some more detail?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pat310/google-trends-api/issues/62#issuecomment-289339313, or mute the thread https://github.com/notifications/unsubscribe-auth/ACg3Dv7sXyp2V-0ztKRnfDTs6VEYcWv5ks5rpx63gaJpZM4MplR3 .

Dayjo commented 7 years ago

Yeah, this is the standard JSON fail error which should now be getting caught in the .catch of the calls. This happens when you hit the rate limit for your IP address. It's pretty annoying. I've found that if you make no more requests for 1 hour, you should be good to go.