spiral / cycle-bridge

🌉 Cycle ORM v2 bridge to Spiral Framework
https://cycle-orm.dev
MIT License
16 stars 6 forks source link

Unable to create token #85

Closed jenky closed 8 months ago

jenky commented 8 months ago
SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bytea
CONTEXT:  unnamed portal parameter $5 = '...'

The payload contains an url. Upon json_encode, it will add backslashes to escape the uri i.e http:\/\/127.0.0.1:8080\/ which I guess somewhat invalid for bytea column. Removing the URL from the payload resolves the issue.

roxblnfk commented 8 months ago

Hello. Could you reopen this in https://github.com/cycle/database?