#Reflection error
1 messages · Page 1 of 1 (latest)
cc @bright sigil
Here’s the (unfinished) PR if you want to repro: https://github.com/dagger/dagger/pull/6028
i'm heading off for the day (still recovering, sorry 🤒), but will make it priority for tomorrow ❤️
No rush @bright sigil , feel better!
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.
pushed a fix, and left a comment in https://github.com/dagger/dagger/pull/6028#issuecomment-1790926110
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