Closed wangfei800 closed 4 years ago
I have queue config: 'default' => env('QUEUE_DRIVER', 'sqs-plain'), 'segment' => [ 'driver' => 'sqs-plain', 'key' => env('S3_ACCESS_KEY'), 'secret' => env('S3_SECRET_KEY'), 'prefix' => env('SQS_URL'), 'queue' => env('APP_ENV').'-queue-internal', 'region' => env('SQS_REGION'), 'retry_after' => 90, ],
'sqs-plain' => [ 'driver' => 'sqs-plain', 'key' => env('S3_ACCESS_KEY'), 'secret' => env('S3_SECRET_KEY'), 'prefix' => env('SQS_URL'), 'queue' => env('APP_ENV').'-queue-external', 'region' => env('SQS_REGION'), 'retry_after' => 90, ],
Two queues on the sqs-plain connection, when I run worker, they can process jobs on the two queues; but, when I tried to create jobs (push to sqs),
dispatch($job->setPlain())->onConnection('sqs-plain')->onQueue('segment');
I got error:
GuzzleHttp\Exception\InvalidArgumentException: IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL) in file /Users/thomas/projects/beach/vendor/guzzlehttp/guzzle/src/functions.php on line 384 Stack trace:
I have tried to debug, I found the Sqs/Connector.php cannot get the correct Configs to create SqsClient.
I have queue config: 'default' => env('QUEUE_DRIVER', 'sqs-plain'), 'segment' => [ 'driver' => 'sqs-plain', 'key' => env('S3_ACCESS_KEY'), 'secret' => env('S3_SECRET_KEY'), 'prefix' => env('SQS_URL'), 'queue' => env('APP_ENV').'-queue-internal', 'region' => env('SQS_REGION'), 'retry_after' => 90, ],
Two queues on the sqs-plain connection, when I run worker, they can process jobs on the two queues; but, when I tried to create jobs (push to sqs),
dispatch($job->setPlain())->onConnection('sqs-plain')->onQueue('segment');
I got error:
GuzzleHttp\Exception\InvalidArgumentException: IDN conversion failed (errors: IDNA_ERROR_EMPTY_LABEL) in file /Users/thomas/projects/beach/vendor/guzzlehttp/guzzle/src/functions.php on line 384 Stack trace:
I have tried to debug, I found the Sqs/Connector.php cannot get the correct Configs to create SqsClient.