Skip to content

Error: the query error when there's a non ASCII character #455

Open
@syofyanzuhad

Description

@syofyanzuhad

Pulse Version

1.2

Laravel Version

10.3

PHP Version

8.3

Livewire Version

3.6

Database Driver & Version

MySQL 8.0.35

Description

the key column on pulse_entries table doesn't support non-ASCII characters, it will make the pulse:work command always stop and we cannot do anything

 Illuminate\\Database\\QueryException \n\n  SQLSTATE[HY000]: General error: 1366 Incorrect string value: \'\\xBF\'\'\\xF0\\x9F\\x92...\' for column \'key\' at row 1 (Connection: monitoring, SQL: insert into `pulse_entries` (`key`, `timestamp`, `type`, `value`) values (

Steps To Reproduce

I run a pulse with redis and the job suddenly stop with the error:

 Illuminate\\Database\\QueryException \n\n  SQLSTATE[HY000]: General error: 1366 Incorrect string value: \'\\xBF\'\'\\xF0\\x9F\\x92...\' for column \'key\' at row 1 (Connection: monitoring, SQL: insert into `pulse_entries` (`key`, `timestamp`, `type`, `value`) values (

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions