-
Notifications
You must be signed in to change notification settings - Fork 232
Description
Bug Report
Prerequisites
- Can you reproduce the problem?
- Are you running the latest version?
- Are you reporting to the correct repository?
- Did you perform a cursory search?
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 (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]