You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local.ALERT: Could not get cors config from DB - SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: boolean = integer
LINE 1: select * from "cors_config" where enabled = 1
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. (SQL: select * from "cors_config" where enabled = 1)
I believe it's related to whereRaw('enabled = 1') in original code.
But the enabled field is actually a boolean type, which triggered type mismatch error during query.
The text was updated successfully, but these errors were encountered:
ethan-ho
changed the title
"Could not get cors config from DB" error when using PostgreSQL
Got "Could not get cors config from DB" error in error log when using with PostgreSQL
Jul 6, 2016
See following error generated for every request:
I believe it's related to whereRaw('enabled = 1') in original code.
But the enabled field is actually a boolean type, which triggered type mismatch error during query.
The text was updated successfully, but these errors were encountered: