Skip to content

Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: func() error #56

@shklae

Description

@shklae

The following error is generated while trying to log.WithField cmd variable (of type https://pkg.go.dev/os/exec#Cmd)
Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: func() error

https://github.com/smart-edge-open/sriov-fec-operator/blob/6be4a1f78d468bd9b07821468c577e8b0873a7be/pkg/daemon/common.go#L29

The issue has started since the Cancel func() error field was added to the Cmd type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions