zyrouge / node-genius-lyrics

Simple lyrics fetcher that uses Genius. Also has official API implementations.
https://genius-lyrics.js.org
MIT License
64 stars 12 forks source link

SyntaxError: Unexpected token < in JSON at position 0 #37

Closed lorypelli closed 1 year ago

lorypelli commented 1 year ago

It happens only with my host, not with Visual Studio Code

zyrouge commented 1 year ago

Host? What host do you mean? Hosting service?

lorypelli commented 1 year ago

Host? What host do you mean? Hosting service?

my hosting is https://client.apexcloud.be

lorypelli commented 1 year ago

I'm using it for a bot discord, where I run the bot from the host, when I try to search lyrics it does this error, but if I run the bot locally (VSCode) it doesn't

zyrouge commented 1 year ago

I'm using it for a bot discord, where I run the bot from the host, when I try to search lyrics it does this error, but if I run the bot locally (VSCode) it doesn't

Use a proxy since the website blocks some ips to prevent scraping website.