Closed warior456 closed 1 year ago
am i doing something wrong or what?
Is this still relevant? If so, please reopen this.
This is actually still relevant, I'm getting this error when using (await Genius.songs.search(title))[0]
.
This is actually still relevant, I'm getting this error when using
(await Genius.songs.search(title))[0]
.
Could you send the whole code and the steps to reproduce this error?
Sure, this is my code without the unneccessary parts:
const Genius = new genius.Client(geniusClientToken)
try {
const song = (await Genius.songs.search(title))[0]
const lyrics = await song.lyrics()
// Process lyrics here
} catch {
// Send error here
}
geniusClientToken
is a string containing my key.
title
is a valid string that contains the artist name and song title.
However, I was just testing a bit, and this apparently works fine without a key. My key could possibly be invalid, but didn't earlier versions warn you about that?
Could you give the value of title so that I'll check if that occurs. The tests seems to pass just fine. I'll check if invalid key causes that.
~Could you give the value of title so that I'll check if that occurs. The tests seems to pass just fine.~ I'll check if invalid key causes that.
Seems like I couldn't reproduce this issue. Could you give the title
used in that code?
I had the error occur with every title
I entered. Turns out the issue was indeed an invalid key though, weirdly enough.
API related errors are now handled.