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

DTS API does not follow the shared region setting defined in DefaultClient #200

Open
sinri opened this issue Aug 18, 2021 · 0 comments
Open

Comments

@sinri
Copy link

sinri commented Aug 18, 2021

  • PHP 版本: 7.4 (via Homebrew)
  • 平台:MacOS
  • 产品名称:Dts
  • 产品版本:1.8.1074
  • APIDts::v20200101()->describeDtsJobs

Received error as following:

↘ Caused by [AlibabaCloud\Client\Exception\ServerException#400] MissingRegion: Region is mandatory for this action. RequestId: B830AAD3-3191-5EF2-A6B3-C44931386BF2 POST "http://dts.aliyuncs.com" 400

Pure Code:

AlibabaCloud::accessKeyClient($getAccessKeyId, $getAccessKeySecret)
                ->regionId($regionId)
                ->asDefaultClient();
// error in next request call!
$response = Dts::v20200101()->describeDtsJobs([])
                ->withJobType('SYNC')
                ->withPageNumber(1)
                ->withPageSize(30)
                ->request();
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