gpt4 book ai didi

c# - 通知操作总是返回状态码 293 : The callback URL is either absent or incorrect

转载 作者:太空宇宙 更新时间:2023-11-03 13:07:42 24 4
gpt4 key购买 nike

我正在使用 Withings API .

一切正常。然后我尝试了 Notification API并能够成功订阅通知,也可以获取、列出和撤销通知。

使用相同的源代码,1 天后,Notification API(操作:订阅、获取、撤销)总是以状态代码 293 响应我:回调 URL 不存在或不正确。

但是 (action: list) 总是给我 status : 0 以及其他信息,其中还包括我的通知回调 url 作为用户订阅结果列表。

我检查了三个操作(action:subscribe、get、revoke)的通知回调 url 并添加到这里,以便你们也能看到。

还要注意我的通知回调 url 没有超过 255 个字符。

编码后的网址:

https://wbsapi.withings.net/notify?action=revoke&userid=7354839&callbackurl=http%3A%2F%2Fwww.myrealIpdomain.com%2FRPWearableIntegrationAPI%2Fapi%2FWithingsAPI%2FNotificationCallBack&oauth_consumer_key=c899ec52892c37097893c561f43c3104c72f33c82509d1881471bb3d&oauth_nonce=3d0j1rt6&oauth_signature=Fnm1or9%2BhtIaee7bJ5ylGS3kwjM%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1431431635&oauth_token=4e871c205fd1b3717db34d088e632ed6c9ce01854f6dcdc05c79e325640&oauth_version=1.0

解码后的网址:

https://wbsapi.withings.net/notify?action=subscribe&userid=7354839&callbackurl=http://www.myrealIpdomain.com/RPWearableIntegrationAPI/api/WithingsAPI/NotificationCallBack&comment=NotificationDescriptionM2SYS&appli=1&oauth_consumer_key=c899ec52892c37097893c561f43c3104c72f33c82509d1881471bb3d&oauth_nonce=6rx29eh0&oauth_signature=DNntmrO/+zYUgRIuR4yzPKezpY8=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1431435259&oauth_token=4e871c205fd1b3717db34d088e632ed6c9ce01854f6dcdc05c79e325640&oauth_version=1.0

我想不通我错过了什么?如果有人能找到任何帮助或信息,我们将不胜感激。

此外,我无法获得有关 Withings 集成开发人员论坛的任何 URL。如果有人知道也可以帮助我。

最佳答案

这似乎不是这里的问题,但无论如何都要分享,以防有人通过 Google 访问此页面。我刚刚遇到了同样令人费解的错误,并且使用常规 HTTP 而不是 HTTPS 作为回调 URL 为我修复了它。似乎是 Withings 端的一个错误。不管怎样,回调不包含任何敏感数据,所以虽然这很烦人,但这似乎并不是一个主要的障碍。

关于c# - 通知操作总是返回状态码 293 : The callback URL is either absent or incorrect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30192322/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com