question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ambassador 0.40.1 floods logs when using add_request_headers with DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT

See original GitHub issue

Describe the bug Our logs have begun filling up with addReferenceKey attempted to add an empty value entries after upgrading to 0.40.1 (from 0.40.0).

To Reproduce Configure “add_request_headers” with the value “%DOWNSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%” in a service. Make requests to the service.

Expected behavior No errors or spurious logs should be generated.

Versions (please complete the following information):

  • Ambassador: 0.40.1
  • Kubernetes environment: Bare metal (bootstrapped via rke).
  • Version: 1.10.5

Additional context Downgrading to 0.40.0 eliminates the log flooding issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ericbarchcommented, Nov 16, 2018

Roger that. We’ve actually switched back to running 0.40.1 for that reason. It’s a bit of a nuisance but better than crashing. 😃

1reaction
ericbarchcommented, Nov 16, 2018

Also adding the full log lines here:

ambassador-5znxl: [2018-11-15 23:43:47.934][77][error][config] source/common/http/header_map_impl.cc:373] addReferenceKey attempted to add an empty value
ambassador-5znxl: [2018-11-15 23:43:48.585][77][error][config] source/common/http/header_map_impl.cc:373] addReferenceKey attempted to add an empty value
ambassador-5znxl: [2018-11-15 23:43:52.947][75][error][config] source/common/http/header_map_impl.cc:373] addReferenceKey attempted to add an empty value
ambassador-5znxl: [2018-11-15 23:43:52.949][77][error][config] source/common/http/header_map_impl.cc:373] addReferenceKey attempted to add an empty value
ambassador-5znxl: [2018-11-15 23:43:53.673][77][error][config] source/common/http/header_map_impl.cc:373] addReferenceKey attempted to add an empty value
ambassador-5znxl: [2018-11-15 23:43:53.695][80][error][config] source/common/http/header_map_impl.cc:373] addReferenceKey attempted to add an empty value
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found