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 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 Version - [The version of Node you are using]
Browser Name - [The name of Browser that you are using for SDK]
Version - [The version of the browser you are using]
Bug Report
Prerequisites
For more information, see the
CONTRIBUTINGguide.Description
I noticed that all calls by the sdk use the
application/jsonheader. I am making a request tohttps://graph.microsoft.com/v1.0/me/onenote/sections/{section-id}/pagesand it requires
application/xhtml+xmlas the request header.The payload is:
Looking at the network call, the content-type is set to
application/jsonand 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]