apex / apex/log

json handler: Unsupported type serializing oauth error

Abierto
#56 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
1.4k
Forks
110
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.