Skip to content
Advertisement

Exception – Attribute is specified with no value: url

The second call fetch throw exception because it loses value of url. Why?

See stack trace. Twice error 429 and call onRetryAfter for each. But exception only for the second. The first fetch has url, the second loses it.

JavaScript

Log

JavaScript

Calling

Call fetchAll into SpotifyRequest.getAll

JavaScript

Full code

JavaScript

Advertisement

Answer

Issue:

JavaScript

readResponse() function accepts three arguments:response, url and params, but fetch only passes 1 argument: response causing url to be undefined.

Solution:

Pass three arguments to the readResponse

Snippet:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement