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
❯ go run .
Err: Settings | Data | json: cannot unmarshal string into Go value of type []string
Info: <nil>
I couldn't exactly track down which specific field causes the error.
Edit: I used the filter_path incorrectly and removed the part. The main issue is that the json response cannot be unmarshalled into the info.Response struct anyways.
The text was updated successfully, but these errors were encountered:
hellconnon
changed the title
Bug: Typedapi Nodes.Info().Do() returns json unmarshalling error. Nodes.Info().Filterpath().Do() supresses Error and just returns nil.
Bug: Typedapi Nodes.Info().Do() returns json unmarshalling error.
Oct 16, 2024
It looks like it is the NodesInfoPath struct in types.nodeinfopath.go, at least that is one place, where it seems to be incorrect.
The struct definition is:
typeNodeInfoPathstruct {
Data []string`json:"data,omitempty"`Home*string`json:"home,omitempty"`Logs*string`json:"logs,omitempty"`Repo []string`json:"repo,omitempty"`
}
Hey,
when using the typed api client like this:
i get the following error:
I couldn't exactly track down which specific field causes the error.
Edit: I used the filter_path incorrectly and removed the part. The main issue is that the json response cannot be unmarshalled into the info.Response struct anyways.
The text was updated successfully, but these errors were encountered: