如何解决Postman调用Outlook API时的UnknownTokenType错误?
I'm trying to fetch the current user's photo via the Outlook API using either Postman or AJAX, hitting the endpoint https://outlook.office.com/api/v2.0/me/photo/$value. However, every call returns a 401 Unauthorized status with this error response:
{"error":{"code":"UnknownTokenType","message":"Token type is not known.","innerError":{"requestId":"df42ad59-d446-48a6-bfbe-6a9334bde364","date":"2019-08-09T08:06:24"}}}
I've successfully obtained an OAuth 2.0 access token, and I'm passing it in the request header with the Bearer type as required. Here's a sample of my request:
GET /api/v2.0/me/photo/$value HTTP/1.1 Host: outlook.office.com Authorization: Bearer eyJ0eX.. User-Agent: PostmanRuntime/7.15.2 Accept: */* Cache-Control: no-cache Postman-Token: 53ee.. Host: outlook.office.com Accept-Encoding: gzip, deflate Connection: keep-alive cache-control: no-cache
I've double-checked that the Authorization header uses the correct Bearer prefix, but the error persists. Can anyone help me troubleshoot what might be causing this "UnknownTokenType" issue? Thanks in advance for your support!
内容的提问来源于stack exchange,提问作者Srinath Ve
相关产品推荐
相关产品推荐

