Closed karthigamahe closed 4 months ago
To summarize I believe you're saying this worked fine in Node 16 but now that you're on Node 18 it doesn't work, is that correct? I might point you to this issue #2823.
Closing this issue as answered. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you!
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.
Major Version
3.x
Minor Version Number
1.0
Target environment
SharePoint Framework
Additional environment details
I am using nodejs and authenticated based on MSAL
Expected or Desired Behavior
I am trying to get the sharepoint folder structure to display in UI.
Observed Behavior
I am getting 500 internal server error in UI also in server i am getting this issue
_TypeError: Failed to parse URL from at .Request ( node:internal/deps/undici/undici:5272 ) at .mergeHeaders ( /layers/google.nodejs.yarn/yarn_modules/node_modules/@pnp/common-commonjs/net.js:9 ) at .SPHttpClient. ( /layers/google.nodejs.yarn/yarn_modules/node_modules/@pnp/sp-commonjs/sphttpclient.js:38 )
at .step ( /layers/google.nodejs.yarn/yarn_modules/node_modules/tslib/tslib.js:143 )
at .Object.next ( /layers/google.nodejs.yarn/yarn_modules/nodemodules/tslib/tslib.js:124 )
Steps to Reproduce
This is the code i am running to get the folders