apex / apex/log

json handler: Unsupported type serializing oauth error

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
110
PR merge metrics
No merged PRs in 30d

Description

One of the errors dispatched by the [oauth2 library](https://github.com/golang/oauth2/blob/master/internal/token.go#L256) contains a `http.Response` which causes the following error:

error logging: json: unsupported type: func() (io.ReadCloser, error)

This feels like something `WithError(err)` should handle gracefully, otherwise knowledge of underlying error types needs to be propagated throughout the code.

I'm happy to submit a patch, but not sure what the best solution for this is. Guidance welcome.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.