Skip to content
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

Invalid JSON returned by endpoint / duplicate object property #4

Closed
angelobreuer opened this issue Mar 9, 2024 · 1 comment
Closed

Comments

@angelobreuer
Copy link

When executing the following request, java-timed-lyrics will return an invalid payload with the type property being present twice.

Request

http://localhost:2333/v4/lyrics/search?query=Never Gonna Give You Up&source=genius

Response

{
	"type": "text",
	"track": {
		"title": "Never Gonna Give You Up",
		"author": "Rick Astley",
		"album": null,
		"albumArt": [
			{
				"url": "https://images.genius.com/88634fdafc60d4ff1e76944436c34a19.901x901x1.png",
				"height": -1,
				"width": -1
			}
		]
	},
	"source": "genius.com",
	"text": "[Intro]\nDesert you\nOoh-ooh-ooh-ooh\nHurt you\n\n[Verse 1]\nWe're no strangers to love\nYou know the rules and so do I (Do I)\nA full commitment's what I'm thinking of\nYou wouldn't get this from any other guy\n\n[Pre-Chorus]\nI just wanna tell you how I'm feeling\nGotta make you understand\n\n[Chorus]\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n[Verse 2]\nWe've known each other for so long\nYour heart's been aching, but you're too shy to say it (To say it)\nInside, we both know what's been going on (Going on)\nWe know the game, and we're gonna play it",
	"type": "text" // !!! Duplicate property
}
@duncte123
Copy link
Member

Fixed in version 1.6.3

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

No branches or pull requests

2 participants