Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调用 Dingtalk.getAccessToken() 会得到 400 错误 #36

Open
Mdxin opened this issue Oct 9, 2024 · 0 comments
Open

调用 Dingtalk.getAccessToken() 会得到 400 错误 #36

Mdxin opened this issue Oct 9, 2024 · 0 comments

Comments

@Mdxin
Copy link

Mdxin commented Oct 9, 2024

包名:alibabacloud/dingtalk
文档地址:https://open.dingtalk.com/document/orgapp/obtain-the-access_token-of-an-internal-app

试图获取 accessToken 会得到如下错误:

[Missingbody]TeaUnableRetryError in OpenApiClient.php line 744
code: 400, body is mandatory for this action. request id:

微信截图_20241009113803

经查看,发出请求的 content-typeapplication/x-www-form-urlencoded,但是https://api.dingtalk.com/v1.0/oauth2/accessToken接口似乎只接受json格式。

微信截图_20241009114437

微信截图_20241009114531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant