Fix SharePoint Video REST API HTTP 500 Errors in an Application
Question details
The user needs to identify why a SharePoint Video REST API request returns HTTP 500 in an application but succeeds in Postman.

- Product
- SharePoint Video REST API
- Device & OS
- not provided
- Scenario
- An application calls the SharePoint Video REST API using an Azure AD JWT token and compares the result with a request sent from Postman.
- Observed behavior
- The application receives a 500 Internal Server Error, while the corresponding Postman request succeeds.
Identify a reproducible request in both Postman and the application, and record the endpoint, response time, and any correlation ID. Do not share access tokens, client secrets, or other credentials when collecting diagnostics.
Compare the Postman and application requests
Use the successful Postman request as a baseline to find differences in the endpoint, token, headers, or HttpClient configuration.
In Postman, open the working request and note its HTTP method, full URL, query parameters, and request body. Compare them with the values passed to HttpClient in the application.
Compare the audience and relevant permission claims in the two JWTs without sharing the tokens. In the Microsoft Entra admin center, review the app registration's API permissions and consent for the target API.
In Postman, inspect the Headers and Authorization tabs. Compare them with the application's HttpClient request headers, including Authorization, Accept, and Content-Type where applicable.
Log the application's HTTP status, response body, timestamp, and any correlation or request ID returned in the response headers. Redact credentials and sensitive data before sharing the log.

Ask Microsoft 365 developers to review the failing request
Use this option if the application still fails after you compare it with Postman.
Work with Office files in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for an easy transition. It does not resolve SharePoint API errors.

Frequently Asked Questions
Why does the request work in Postman but fail in my application?
The requests may differ in their URL, method, body, headers, token claims, or HttpClient configuration. Compare the working Postman request with the application request before changing the implementation.
Which token details should I compare?
Check the JWT audience and relevant permission claims for both requests. Also review the app registration's API permissions and consent in the Microsoft Entra admin center. Never post the full access tokens.
What should I include when asking for help with an HTTP 500?
Include a redacted HttpClient sample, endpoint pattern, method, relevant headers, response body, timestamp, and any correlation or request ID. Explain how the successful Postman request differs from the failing application request.
Does HTTP 500 mean my access token is invalid?
Not necessarily. HTTP 500 indicates a server-side error response, but the status alone does not identify its cause. Compare token claims and request details, then use the response diagnostics to investigate further.




