aaron-ai commented on issue #308:
URL: 
https://github.com/apache/rocketmq-clients/issues/308#issuecomment-1347854934

   > 'update_metadata' => function ($metaData) use ($clientId) { 
$metaData['headers'] = [ 'x-mq-client-id' => $clientId, 'x-mq-date-time' => 
'20210309T195445Z', 'x-mq-request-id' => 
'f122a1e0-dbcf-4ca4-9db7-221903354be7', 'x-mq-language' => 'php', 
'x-mq-client-version' => '5.0.0', 'x-mq-protocol' => 'v2' ]; // Pass the 
ClientID to the server through the header return $metaData; } ]); response data 
is {"message":"\n\u001f\b\u0478\u0002\u0012\u0019client id cannot be 
empty","status":{"metadata":[],"code":0,"details":""},"metadata":[]}
   
   
   @sundayfly @bendan365 You should not set `headers` in `metaData`, and put 
all headers into it.
   
   example:
   ```php
   $metaData['x-mq-client-id'] = [$clientId];
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to