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 am encountering a TypeError while Running sp-rest-proxy in my Angular project, which utilizes On-Demand Credentials as the authentication strategy. The error message reads: TypeError: Cannot read properties of null (reading 'toString')
This issue arises and on-demand authentication doesn't show the browser window.
Version Information:
Angular : ^17.3.0
Nodejs: 22.0.0
sp-rest-proxy -> ^3.3.6
@pnp/sp -> ^4.3.0
Electron
Detailed Error Message
node src/sp-proxy.js
(node:12656) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
GET: https://tenant.sharepoint.com/sites/mysite/_api/web/currentuser Error TypeError: Cannot read properties of null (reading 'toString')
at OnDemand.saveAuthData (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\node-sp-auth\lib\src\auth\resolvers\OnDemand\OnDemand.js:83:44)
at OnDemand.getAuth (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\node-sp-auth\lib\src\auth\resolvers\OnDemand\OnDemand.js:38:28)
at Object.getAuth (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\node-sp-auth\lib\src\index.js:16:76)
at SPClient. (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:69:51)
at step (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:44:23)
at Object.next (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:25:53)
at (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:19:71
at new Promise ()
at __awaiter (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:15:12)
at SPClient.fetch (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:65:20)
The text was updated successfully, but these errors were encountered:
I am encountering a TypeError while Running sp-rest-proxy in my Angular project, which utilizes On-Demand Credentials as the authentication strategy. The error message reads:
TypeError: Cannot read properties of null (reading 'toString')
This issue arises and on-demand authentication doesn't show the browser window.
Version Information:
Detailed Error Message
(node:12656) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)? SharePoint URL https://tenant.sharepoint.com/sites/mysite
? Authentication strategy On-Demand credentials (Electron@8 is required, not compatible with NTLM)
SharePoint REST Proxy has been started on http://localhost:8080
GET: https://tenant.sharepoint.com/sites/mysite/_api/web/currentuser
Error TypeError: Cannot read properties of null (reading 'toString')
at OnDemand.saveAuthData (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\node-sp-auth\lib\src\auth\resolvers\OnDemand\OnDemand.js:83:44)
at OnDemand.getAuth (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\node-sp-auth\lib\src\auth\resolvers\OnDemand\OnDemand.js:38:28)
at Object.getAuth (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\node-sp-auth\lib\src\index.js:16:76)
at SPClient. (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:69:51)
at step (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:44:23)
at Object.next (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:25:53)
at (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:19:71
at new Promise ()
at __awaiter (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:15:12)
at SPClient.fetch (C:\Users\Vivek\Documents\Projects\portal-idea\node_modules\sp-rest-proxy\dist\utils\client.js:65:20)
The text was updated successfully, but these errors were encountered: