-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Queue Failed_jobs issue with Exception contain UNICODE #41016
Labels
Comments
boomhq
added a commit
to boomhq/framework
that referenced
this issue
Feb 15, 2022
Can't Insert failed job exception with UNICODE character. Issues : laravel#24263 laravel#41016
I don't get this with the following job: <?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class HelloWorld implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function handle()
{
throw new \Exception('Hello World で指定してくださ');
// logger('Hello World で指定してくださ');
}
} I don't know why you're using |
@driesvints To reproduce, you need to encode the message to other than UTF-8. |
Re-opening this, thanks |
boomhq
added a commit
to boomhq/framework
that referenced
this issue
Feb 16, 2022
taylorotwell
pushed a commit
that referenced
this issue
Feb 16, 2022
taylorotwell
pushed a commit
to illuminate/queue
that referenced
this issue
Feb 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
Failed to insert the entry into failed_jobs when Exception contains multi bytes character. In my case, Guzzle throw a ClientException with the 400 bad requests.
Steps To Reproduce:
Just throw the exception from Job with the message that was encoded in a non-UTF8 encoded string. something like the following:
The text was updated successfully, but these errors were encountered: