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

nlp调用一直返回 SignatureDoesNotMatch: Specified signature is not matched with our calculation #210

Open
liulianjun1995 opened this issue May 13, 2022 · 0 comments

Comments

@liulianjun1995
Copy link

  • PHP Version:7.4.3
  • Platform:wsl
  • Product:nlp
  • Product Version:SignatureDoesNotMatch: Specified signature is not matched with our calculation
  • API:
           AlibabaCloud::accessKeyClient($this->accessKeyId, $this->accessKeySecret)
                ->regionId('cn-hangzhou')
                ->asDefaultClient();

            $res = AlibabaCloud::rpc()
                ->host('alinlp.cn-hangzhou.aliyuncs.com')
                ->product('Nlp')
                ->action('GetWsChGeneral')
                ->format('JSON')
                ->method('POST')
                ->scheme('https')
                ->options([
                    'query' => [
                        'ServiceCode' => 'alinlp',
                        'Text' => $text,
                        'TokenizerId' => 'GENERAL_CHN',
                        'OutType' => '1',
                        'Version' => '2020-06-29',
                    ]
                ])->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