admin管理员组文章数量:1415137
I'm trying to subscribe to OneDrive changes by sending a POST request to .0/subscriptions
in Spring with the following body:
{
"changeType": "updated",
"notificationUrl": "%s",
"resource": "/me/drive/root",
"expirationDateTime": "%s"
}
The problem is this sometimes returns a 401 unauthorized
error, and at other times works fine. So I can't really tell what could be wrong given that this works sometimes or throws an error randomly.
All my other API calls to list folders for example work fine with the same access token.
Has anyone faced a similar issue ?
Tried to refresh the access token each time I call the subscription endpoint, and also tested my notification URL using Postman to check that it's working as intended.
本文标签: springWhy is Graph MS API randomly returning 401 upon subscription creationStack Overflow
版权声明:本文标题:spring - Why is Graph MS API randomly returning 401 upon subscription creation? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745215428a2648135.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论