Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing access log in some error cases #267

Closed
alex-schneider opened this issue Jun 30, 2021 · 0 comments · Fixed by #282
Closed

Missing access log in some error cases #267

alex-schneider opened this issue Jun 30, 2021 · 0 comments · Fixed by #282
Labels
bug Something isn't working

Comments

@alex-schneider
Copy link
Contributor

Describe the bug
Couper does not writes an access log in error cases while fetching muxer or other data from the incoming client request.

To Reproduce
Steps to reproduce the behavior:

  1. Which Couper version? Run couper version or docker run avenga/couper version

  2. Provide your configuration file *.hcl. Remove sensitive data.

server "bug" {
  api {
    endpoint "/api/**" {
      proxy {
        url = "https://httpbin.org/anything"
      }
    }
  }
}
  1. Provide a curl call for reproduction

curl -v 'http://localhost:8080/api' -H 'Host: foo::'

  1. See an error response or error log.

Couper writes the following log line:

2021/06/30 15:57:30 http: superfluous response.WriteHeader call from github.com/avenga/couper/server/writer.(*Gzip).WriteHeader (gzip.go:68)
@alex-schneider alex-schneider added the bug Something isn't working label Jun 30, 2021
@alex-schneider alex-schneider linked a pull request Aug 6, 2021 that will close this issue
@malud malud closed this as completed in #282 Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant