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

我1.5.44版本的AlibabaCloud.SDK.Dingtalk可以正常调用 /v1.0/oauth2/userAccessToken,2.1.15和2.1.18调用会报错 #29

Open
WXinFfly opened this issue May 28, 2024 · 1 comment

Comments

@WXinFfly
Copy link

我1.5.44版本的AlibabaCloud.SDK.Dingtalk可以正常调用 /v1.0/oauth2/userAccessToken,2.1.15和2.1.18调用会报错,这是什么原因?,有什么更新导致的么?

image

   在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   在 AlibabaCloud.OpenApiClient.Client.Execute(Params params_, OpenApiRequest request, RuntimeOptions runtime)
   在 AlibabaCloud.SDK.Dingtalkoauth2_1_0.Client.GetUserTokenWithOptions(GetUserTokenRequest request, Dictionary`2 headers, RuntimeOptions runtime)
   在 Highever.ERP.Service.DingDingService.GetUserToken(String authCode) 在 G:\HigheverAI\ERP\Highever.ERP.Service\DingDingService.cs 中: 第 204 行
   在 Highever.ERP.Service.DingDingService.DingDingLogin(String authCode) 在 G:\HigheverAI\ERP\Highever.ERP.Service\DingDingService.cs 中: 第 233 行
@TsinghuaDream
Copy link

加一行这个配置就可用了 config.DisableHttp2 = false;

这个问题正在处理中。

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

2 participants