You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a 403 error (unauthorized) when trying to use the wrapper (wrapWebApi) feature. I put the exact example code with my spDcCookie info and it doesn't work. The same cookie and code works fine when not using the wrapper.
I get a 403 error (unauthorized) when trying to use the wrapper (wrapWebApi) feature. I put the exact example code with my spDcCookie info and it doesn't work. The same cookie and code works fine when not using the wrapper.
const SpotifyWebApi = require('spotify-web-api-node')
const buddyList = require('spotify-buddylist')
const api = buddyList.wrapWebApi(new SpotifyWebApi({ spDcCookie }))
const tokenResponse = await api.getWebAccessToken()
api.setAccessToken(tokenResponse.body.accessToken)
const friendActivityResponse = await api.getFriendActivity()
const friendActivity = friendActivityResponse.body
Error printout is:
body: {},
headers: {
date: 'Thu, 17 Aug 2023 19:51:18 GMT',
'content-type': 'text/html; charset=utf-8',
vary: 'Accept-Encoding',
'content-encoding': 'gzip',
'x-envoy-upstream-service-time': '0',
'sp-trace-id': 'bb8a47291bedb1f1',
'strict-transport-security': 'max-age=31536000',
'x-content-type-options': 'nosniff',
server: 'envoy',
via: 'HTTP/2 edgeproxy, 1.1 google',
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
connection: 'close',
'transfer-encoding': 'chunked'
},
statusCode: 403
The text was updated successfully, but these errors were encountered: