#Reflection error

1 messages · Page 1 of 1 (latest)

elfin viper
#

🧵

#

(not urgent)

full crescent
#

cc @bright sigil

elfin viper
bright sigil
#

i'm heading off for the day (still recovering, sorry 🤒), but will make it priority for tomorrow ❤️

elfin viper
#

No rush @bright sigil , feel better!

elfin viper
#

Here's the line in sdk/go/querybuilder/marshal.go that panics:

if isOptional && IsZeroValue(fv.Interface()) {

Specifically fv.Interface() causes the panic. This is documented in the Go docs:

func (v Value) Interface() (i any)
Interface returns v's current value as an interface{}. It is equivalent to:
var i interface{} = (v's underlying value)

It panics if the Value was obtained by accessing unexported struct fields.

elfin viper
#

Thanks @bright sigil ! By chance were you able to actually get it to work? I now get past the panic (yay!) but it says "service is not running" when in fact there is a service listening on that port on the host