pckhib / node-red-contrib-spotify

Node-RED node for Spotify Web API
MIT License
13 stars 16 forks source link

TypeError: Cannot read property 'split' of undefined #13

Open ogroef opened 4 years ago

ogroef commented 4 years ago

When the GET-"http-in"-node is used, and the URL-parameter contains a dash - : for example /spotify-credentials/auth/callback

An error is generated in the return message of the GET-operation. See here the detailed error message. error

after changing to another symbol: for example /spotify-credentials/auth/callback . The error is gone and the http-in request handles the data correct.

I get this error when I want to implement the spotify-node.

I see in one of the javascript files that you hardcode this callback '/spotify-credentials/auth/callback'. Thus this means that the code is not using the callback that is defined in the Spotifiy client.

Kind Regards Olivier

bartdesign commented 4 years ago

I have the same problem. When trying to register the spotify client with the authorize button i get "INVALID_CLIENT: Invalid redirect URI". However i triple checked the URI and i even added my ip:1880/spotify-credentials/auth/callback as an extra URI to the spotify api. But it doenst seem to work. Did you get this working? And what do i need to do to apply the same fix?

Kind regards, Bart