Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

.Enrich.WithCorrelationIdHeader() not working #27

Closed
lequangnguyenqn opened this issue Nov 6, 2019 · 1 comment
Closed

.Enrich.WithCorrelationIdHeader() not working #27

lequangnguyenqn opened this issue Nov 6, 2019 · 1 comment
Assignees
Labels

Comments

@lequangnguyenqn
Copy link

lequangnguyenqn commented Nov 6, 2019

It's not work if i use WithCorrelationIdHeader().
After debugged from your codes, I found that the error come from:
_contextAccessor.HttpContext.Response.Headers.Add(_headerKey, correlationId);

It's complain about:
'An item with the same key has already been added. Key: Correlation-Id'

I think you need to check if it's existing or not

@ejcoyle88
Copy link
Contributor

Thanks for reporting this one. :) It should be fixed in 2.0.1.

Any other issues please let us know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants