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
Could response.headers['set-cookie'] be undefined and produce the Cannot read properties of undefined (reading 'length') error message?
I think the message of the error thrown by spAuth.getAuth should be something related to the error received from the upstream SPO server in order to be able to see what gone wrong.
The text was updated successfully, but these errors were encountered:
I'm using node-sp-auth
^3.0.7
to establish a connection to SharePoint online using the following code:Occasionally, I get the following error message from the library:
Error connecting to SPO: Cannot read properties of undefined (reading 'length')
I think this error message is unsuggestive / misleading, as I cannot figure out why the authentication failed.
Browsing through the source code, I found the following snippet of code that could be the source of the problem:
src/auth/resolvers/OnlineUserCredentials.ts
Could
response.headers['set-cookie']
be undefined and produce theCannot read properties of undefined (reading 'length')
error message?I think the message of the error thrown by
spAuth.getAuth
should be something related to the error received from the upstream SPO server in order to be able to see what gone wrong.The text was updated successfully, but these errors were encountered: