[Bug]: Realtime doesn't properly classify some valid errors
General Info
- [x] I checked for similar bug report
- [x] I am using the latest version
- [x] I checked the troubleshooting page for similar problems
Version(s)
3.2.5
Kotlin Target(s) and their respective versions
JVM 21
What happened? (include your code)
I'm getting this error when running supabase locally.
(Supabase-Realtime) Received message without event: RealtimeMessage(topic=realtime:db-changes, event=system, payload={"message":"{:error, %FunctionClauseError{module: Enum, function: :\"-map/2-lists^map/1-1-\", arity: 2, kind: nil, args: nil, clauses: nil}}","status":"error","extension":"postgres_changes","channel":"db-changes"}, ref=null)
I think this should be an error event and so RErrorEvent should check the payload for the error status.
Steps To Reproduce (optional)
No response
Relevant log output (optional)
@sproctor Just curious, what is the cause of this error? Yea we can check for the payload as well here, since the system event only applies to status "ok" system events.