Announcements

Help Wizard

Step 1

NEXT STEP

Not able to download and display album, playlist and track images

Solved!

Not able to download and display album, playlist and track images

Plan

Free/

Country

IN

Device

(Macbook Pro 2018)

Operating System

(Sonamo)

 

My Question or Issue

I am trying to build a Spotify client in Java using Spotify Java Web API. While accessing and displaying albums, playlist and individual tracks, I've noticed that while downloading related images for tracks, albums and playlist only certain few image requests are successful (I can't get this number of successful request since it seem to very in my several tests) Post that any request to download the images (through the images URLs of respective entities) result either in : Java SSL Exception: No subject alternative DNS name matching or java.io.IOException: No PSK available. Unable to resume., one of those and the images won't be downloaded. I must mention that I am directly downloading these images once I have the handle of the respective URLs (for example from Track.getImages()[]). I am not sending any http header (no access key). Could this be a problem? I saw that the browser downloads images just fine without any headers using the same URL.

Please assist.

codeNick.

 

Reply

Accepted Solutions
Marked as solution

OK, I've found out.. its not about any rate limit.. It was about using Java 11 and hitting the http bug.. Upgrading to Java 21 solved the issue. 

View solution in original post

2 Replies

Maybe it has something to do with rate limit.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.
Marked as solution

OK, I've found out.. its not about any rate limit.. It was about using Java 11 and hitting the http bug.. Upgrading to Java 21 solved the issue. 

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random