【问题标题】:SageOne refresh token api error - DataParsingErrorSageOne 刷新令牌 api 错误 - DataParsingError
【发布时间】:2020-03-20 18:51:00
【问题描述】:

我遇到了一个奇怪的问题,我们实现的相同代码在一个系统上运行良好,但在另一个系统上出现问题。收到此错误 -

{"$severity":"error","$dataCode":"DataParsingError","$message":"您发送的数据无法处理。","$source":"代理" }

请告诉我为什么我在一个系统上遇到这个问题,但在另一个系统上工作。 遵循本文档 - https://qa-developer-portal-home.sageaccountantscloud.com/accounting/guides/authentication/

端点 - https://oauth.accounting.sage.com/token

POST /token HTTP/1.1
Host: oauth.accounting.sage.com

client_id=4b64axxxxxxxxxx00710&
client_secret=iNumzTxxxxxxxxxxhVHstrqWesH8tm9&
grant_type=refresh_token&
refresh_token=b06b13xxxxxa275f08bfb57a3

【问题讨论】:

标签: api sage-one


【解决方案1】:

您似乎正在尝试使用 API v3.1 中的 OAuth 服务刷新通过 API v3 收到的令牌,该服务已移至后端的不同技术。

当您使用在https://developerselfservice.sageone.com/ 注册的客户端时,您将自动获得 API v3.1 的令牌。

另外,您使用的是相当过时的文档版本,它真的不应该再在线了。请参考https://developer.sage.com/api/accounting/guides/authentication/的文档

【讨论】:

  • 两个文档的端点相同,请求数据请检查“更新访问令牌”
【解决方案2】:

我发送了错误的刷新令牌。因此,我收到了“DataParsingError”这个问题

【讨论】:

    猜你喜欢
    • 2022-07-15
    • 2019-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-18
    • 2014-10-25
    • 1970-01-01
    • 2021-10-11
    相关资源
    最近更新 更多