0

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

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

请让我知道为什么我在一个系统上遇到这个问题,但在另一个系统上工作。遵循本文档 - 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
4

2 回答 2

0

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

于 2019-11-27T07:06:46.870 回答
0

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

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

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

于 2019-11-26T09:46:38.443 回答