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

Request with referenced backend fails #189

Closed
malud opened this issue Apr 8, 2021 · 0 comments · Fixed by #200
Closed

Request with referenced backend fails #189

malud opened this issue Apr 8, 2021 · 0 comments · Fixed by #200
Assignees
Labels
bug Something isn't working
Milestone

Comments

@malud
Copy link
Collaborator

malud commented Apr 8, 2021

Describe the bug
The request backend configuration seems to fail if the backend string reference is used.

To Reproduce
Steps to reproduce the behavior:

  1. Which Couper version? Run couper version or docker run --entrypoint=/couper avenga/couper version
    0.8 2021-04-08 2a27495
  2. Provide your configuration file *.hcl. Remove sensitive data.
server "couper" {

  endpoint "/" {
    request {
      backend = "ref"
    }
  }
}

definitions {
  backend "ref" {
    origin = "https://httpbin.org"
  }
}
  1. Provide a curl call for reproduction
    curl -v http://localhost:8080/
  2. See an error response or error log.
    ERRO[0018] connecting to default ":80" failed: dial tcp :80: connect: connection refused

Expected behavior
Connect and request https://httpbin.org/

@malud malud added the bug Something isn't working label Apr 8, 2021
@malud malud added this to the 1.0 milestone Apr 8, 2021
@malud malud self-assigned this Apr 9, 2021
@malud malud modified the milestones: 1.0, 1.x Apr 9, 2021
@malud malud mentioned this issue Apr 12, 2021
1 task
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