-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with sp.createIsolated() #10
Comments
Thanks @dannyfoncke, We'll take a look. Isolated environments are relatively new and something might be at edge of PnPjs & the auth library. However, messages out of the sphttpclient don't look so good to me. |
Hi @dannyfoncke, I was not able to repro. Bootrapping with isolated sites works for me. |
Thanks for investigating @koltyakov Can the fact that I'm using add-in creds have something to do with it ? |
It might be. I've tested user creds to two different SPO tenants. Can you try if a different auth strategy fails the same for you? |
Sadly upgrading to v2.7 has not resolved the issue Trying a different auth strategy will take a bit more doing |
Hello Update : it seems to be working in version 2.8 with some issues down the line. Straightforward creating an isolated sp object and using it works in like "isolatedsp.web...." expressions Starting from a default created isolatedsp object (no configuration options), this scenario, taken from the pnp documentation, however does not :
The statement : isolatedsp.web.getFolder...... works Thanks again for the work provided on pnp and related libs. |
Hello,
I'm using pnp-auth a lot :) thank you for providing this lib
I'm trying to use isolated sp objects with pnp-auth but I get the following error :
TypeError: safe_global_js_1.safeGlobal.fetch is not a function
(node:13276) UnhandledPromiseRejectionWarning: TypeError: safe_global_js_1.safeGlobal.fetch is not a function
at FetchClient.fetch (C:\Projects\sptoolkit-projects\packages\common\net.ts:66:27)
at SPHttpClient.retry (C:\Projects\sptoolkit-projects\packages\sp\sphttpclient.ts:122:24)
at C:\Projects\sptoolkit-projects\packages\sp\sphttpclient.ts:144:19
at new Promise ()
at SPHttpClient.fetchRaw (C:\Projects\sptoolkit-projects\packages\sp\sphttpclient.ts:142:16)
at SPHttpClient. (C:\Projects\sptoolkit-projects\packages\sp\sphttpclient.ts:82:21)
packages used :
Code that produces the error:
The same code works with the standard sp object (from the import)
I hope you can point me to my error or fix the problem ?
thanks again
gr
The text was updated successfully, but these errors were encountered: