Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

The playlist creation endpoint is frequently returning "502 Error while loading resource"

The playlist creation endpoint is frequently returning "502 Error while loading resource"

The playlist creation endpoint (docs) is frequently returning HTTP error code 502 and a response body that looks like:

 

{"error": {"status": 502, "message": "Error while loading resource" } }

 

This has completely broken the app that I develop, and is the fourth issue that has cropped up newly this week in the Spotify Web API. Please help.

Reply
4 Replies

Though the error doesn't indicate this, I stopped sending the description field in the body of the request to create the playlist, and this seems to have gotten past this error.

Some playlists were still creating with descriptions included, but most were not. In addition, this endpoint always worked in the past with the description included. Something is newly-broken in the web API this week, and I just happened to find a workaround.

 

I investigated and discovered that the error occurs if you use line breaks in the description field.

This started happening this week.

 

Eu investiguei e descobri que o erro acontece se utilizar quebra de linha no campo descrição.

Isso começou a acontecer essa semana.

@LambertSpot I’m wondering if this issue is caused by the same upstream changes to JSON serialization that resulted in returning floats instead of integers. Any idea?

This issue has started occurring for a different reason today. I haven't yet figured out what the trigger is since I previously stopped sending the description to the playlist create endpoint.

Suggested posts