Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error 403 (Captcha) #24

Open
nicokimmel opened this issue Jan 15, 2022 · 7 comments
Open

Error 403 (Captcha) #24

nicokimmel opened this issue Jan 15, 2022 · 7 comments

Comments

@nicokimmel
Copy link

nicokimmel commented Jan 15, 2022

I got the same problem as one of the closed (and never solved) issues. Its working on my computer but when I push it to the server it only returns 403. Maybe its the reverse proxy that causes the issue. It returns html that contains some sort of captcha.

Code is quite simple:

const genius = require('genius-lyrics-api')

function getLyrics(title) {
	var searchOptions = {
		title: title,
		artist: " ",
		apiKey: "XXX",
		optimizeQuery: true
	}
	genius.getLyrics(searchOptions).then((lyrics) => {
		console.log(lyrics);
	});
}

Originally posted by @nicokimmel in #21 (comment)

@mepc36
Copy link

mepc36 commented Mar 10, 2022

Seeing the same issue, find any fix?

@jrejaud
Copy link

jrejaud commented Sep 3, 2022

Same here.

@DAREALYTYGRUNN1NGARK456
Copy link

i am also getting this error i was able to use it before but now i cannot use it on any server i tried one from https://bluefoxhost.com and https://replit.com

@jrejaud
Copy link

jrejaud commented Sep 8, 2022

I fixed it by running my calls through a rotating proxy

@farshed
Copy link
Owner

farshed commented Jul 1, 2023

May I ask where your server is hosted? And is the captcha returned when you make too many requests or even on the first one?

It could be that Genius's firewall is blacklisting the popular server hosting IPs and is thus aware that a request originating from there is likely coming from a bot. I'm afraid there's not much that I can do here. Try looking into whether it's possible to hide your IP from the requests.

@CharlesNaig
Copy link

Same issue here
image

@CharlesNaig
Copy link

are there already solutions for here?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants