openapi-sdk-php icon indicating copy to clipboard operation
openapi-sdk-php copied to clipboard

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

Open liulianjun1995 opened this issue 2 years ago • 0 comments

  • 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();

liulianjun1995 avatar May 13 '22 04:05 liulianjun1995