我正在使用带有身份验证OAuth2的Basecamp3 API构建Javascript应用程序。我首先在https://launchpad.37signals.com/integrations注册应用程序,以便提供我的信息并让我&配置我的OAuth 2库。redirect_uri
client_id
client_secret
当我启动我的应用程序时,一切似乎正常。我能够获得Basecamp登录名,并可以访问我的Basecamp 3数据。
但是,配置完成后,窗口关闭,我无权访问我的应用程序。
我检查了日志,发现错误400:
error: 2019-03-27 02:59:55.5955 Error when requesting api key StatusCodeError: 400 - {"timestamp":1553716795279,"status":400,"error":"Bad Request","message":"Bad request","path":"/thirdparty/proxy/oauth2/requestTokens/"}
它看起来像我不能让一个道理,所以我改变了实际链接https://launchpad.37signals.com/authorization/token到https://launchpad.37signals.com/authorization/token?type=web_server像我一样第一个链接的授权(解释这里)
但我仍然收到错误,但错误500:
error: 2019-03-27 02:56:16.5616 Error when requesting api key StatusCodeError: 500 - {"apierror":{"status":"INTERNAL_SERVER_ERROR","timestamp":"27-03-2019 07:56:16","message":"Unexpected error","debugMessage":"could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement","errors":null}}
我什至尝试将协议更改https为http。我仍然收到错误500:
error: 2019-03-27 03:05:15.515 Error when requesting api key StatusCodeError: 500 - {"timestamp":1553717115170,"status":500,"error":"Internal Server Error","message":"Error requesting from http://launchpad.37signals.com/authorization/token?client_id=1111111111111111111111111&client_secret=22222222222222222222222&code=abcdef&redirect_uri=http%3A%2F%2Flocalhost%2Foauth%2Fredirect&grant_type=authorization_code; got HTTP response HTTP/1.1 307 Temporary Redirect","path":"/thirdparty/proxy/oauth2/requestTokens/"}
我试图以多种方式更改请求,但没有用。
我试图通过Postman获得令牌(以与我的应用相同的方式),但我做不到。
您知道此错误来自何处吗?
红糖糍粑
相关分类