Getme function doesn't work.
Opened this issue · 4 comments
Hey,
spotifyApi.getMe().then((res) => console.log(res.body)).catch((err) => console.log(err))
this line keeps getting me this error :
`TypeError: Cannot read properties of null (reading 'error')
var _toError = function(response) {
34 | if (typeof response.body === 'object' && response.body.error && typeof response.body.error === 'object' && response.body.error.reason) {
35 | return new WebapiPlayerError(response.body, response.headers, response.statusCode);
36 | }
`
If I'm not doing something the way it should, feel free to mention it.
I'm getting the same error when doing this:
spotifyApi
.searchTracks(search)
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
});
The response is just undefined which causes the error. If anyone knows a solution please let us know :)
I have the exact same problem, I'd be grateful if anybody had a solution :)
im facing the same issue, is there a solution to this?
Have you added your account on the developer dashboard? Some api-calls require either the quota extension or the user's account being added on the dev dashboard.