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
Errors that comes from APQ (PersistedQueryCache) functionality are not catchable in the error presenter handler.ErrorPresenter and also any other kind of middleware e.g.handler.RequestMiddleware, handler.ResolverMiddleware.
The problem probably is that sendErrorf function writes directly to the http.ResponseWriter and does nothing with the context or whatever abstraction the handler.ErrorPresenter works with.
What did you expect?
Errors that come from APQ (PersistedQueryCache) e.g PersistedQueryNotFound, Unsupported persisted query version, provided sha does not match query, Must provide query string, are present in the context or in the error presenter handler.ErrorPresenter so they can be logged, traced, and/or CDN caching can be disabled for them via adding headers to the response.
Minimal graphql.schema and models to reproduce
any schema would work
versions
gqlgen version? v0.10.1
go version? go version go1.13.1 darwin/amd64 /but not related I think/
dep or go modules?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What happened?
Errors that comes from APQ (PersistedQueryCache) functionality are not catchable in the error presenter
handler.ErrorPresenter
and also any other kind of middleware e.g.handler.RequestMiddleware
,handler.ResolverMiddleware
.The problem probably is that
sendErrorf
function writes directly to thehttp.ResponseWriter
and does nothing with the context or whatever abstraction thehandler.ErrorPresenter
works with.What did you expect?
Errors that come from APQ (PersistedQueryCache) e.g PersistedQueryNotFound, Unsupported persisted query version, provided sha does not match query, Must provide query string, are present in the context or in the error presenter
handler.ErrorPresenter
so they can be logged, traced, and/or CDN caching can be disabled for them via adding headers to the response.Minimal graphql.schema and models to reproduce
any schema would work
versions
gqlgen version
? v0.10.1go version
? go version go1.13.1 darwin/amd64 /but not related I think/The text was updated successfully, but these errors were encountered: