We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.x
1.0
SharePoint Framework
In browser
Hi,
I'm using pnpjs in the browser. My SP version is 2013 (can't upgrade...) and i have to use verbose JSON (only type supported in my version)
so, i injected this header in my config :
export const sp = spfi('/test').using( SPBrowser({ baseUrl: '/test', }), Caching(), InjectHeaders({ accept: 'application/json;odata=verbose', }), ).using(PnPLogging(LogLevel.Verbose));
But the JSON responses are wrapped into a d: like this :
{ "GetContextWebInformation": { "__metadata": { "type": "SP.ContextWebInformation" }, "FormDigestTimeoutSeconds": 1800, "FormDigestValue": "..........", "LibraryVersion": "15.0.5545.1000", "SiteFullUrl": ".............", "SupportedSchemaVersions": { "__metadata": { "type": "Collection(Edm.String)" }, "results": [ "14.0.0.0", "15.0.0.0" ] }, "WebFullUrl": "..............." } }
And it looks like the parser didn't expect this cause when i post data, the digest inserted is undefined.
Any way to fix it without writing my own behavior ?
The problem is here if it can help :
The text was updated successfully, but these errors were encountered:
You'd need your own behavior at this point. If you do something, please share it for https://pnp.github.io/pnpjs/core/behavior-recipes/.
Sorry, something went wrong.
I'm going to close this issue as answered. If you have further issues, please feel free to create a new issue and reference this one.
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.
No branches or pull requests
What version of PnPjs library you are using
4.x
Minor Version Number
1.0
Target environment
SharePoint Framework
Additional environment details
In browser
Question/Request
Hi,
I'm using pnpjs in the browser. My SP version is 2013 (can't upgrade...) and i have to use verbose JSON (only type supported in my version)
so, i injected this header in my config :
But the JSON responses are wrapped into a d: like this :
And it looks like the parser didn't expect this cause when i post data, the digest inserted is undefined.
Any way to fix it without writing my own behavior ?
The problem is here if it can help :
The text was updated successfully, but these errors were encountered: