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 noticed that all calls by the sdk use the application/json header. I am making a request to https://graph.microsoft.com/v1.0/me/onenote/sections/{section-id}/pages
and it requires application/xhtml+xml as the request header.
The payload is:
<!DOCTYPE html>
<html>
<head>
<title>A page with a block of HTML</title>
</head>
<body>
<p>This page contains some <i>formatted</i> <b>text</b>.</p>
</body>
</html>
Looking at the network call, the content-type is set to application/json and not the one passed into the client.headers() function
Console Errors: [Is there any console error]
Screenshots: [If applicable, add screenshots to help explain your problem]
Steps to Reproduce
Log in to graph explorer
Run the create page query after setting the required section id
notice the bad request and the response as the screenshot above shows
Expected behavior:
A page in my one note would be created
Actual behavior:
I receive a bad request error
Additional Context
Add any other context about the problem here..
Usage Information
SDK Version - [SDK version you are using]
Node (Check, if using Node version of SDK)
Node Version - [The version of Node you are using]
Browser (Check, if using Browser version of SDK)
Browser Name - [The name of Browser that you are using for SDK]
Version - [The version of the browser you are using]
The text was updated successfully, but these errors were encountered:
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
I noticed that all calls by the sdk use the
application/json
header. I am making a request tohttps://graph.microsoft.com/v1.0/me/onenote/sections/{section-id}/pages
and it requires
application/xhtml+xml
as the request header.The payload is:
Looking at the network call, the content-type is set to
application/json
and not the one passed into the client.headers() functionConsole Errors: [Is there any console error]
Screenshots: [If applicable, add screenshots to help explain your problem]
Steps to Reproduce
Expected behavior:
A page in my one note would be created
Actual behavior:
I receive a bad request error
Additional Context
Add any other context about the problem here..
Usage Information
SDK Version - [SDK version you are using]
The text was updated successfully, but these errors were encountered: