-
Notifications
You must be signed in to change notification settings - Fork 23
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
core: http - Error when performing a request with loggingFlushDisabled set to true #856
Comments
Thanks for the report! We'll fix it in the next release ;) |
…on id is undefined (logging flu ISSUES CLOSED: #856
…on id is undefined (logging flush disabled) ISSUES CLOSED: #856
The issue boils down to the fact that Angular throws in case a header value is |
…ion service to prevent undefined and null header values to be added to Angular Http headers. ISSUES CLOSED: #856
…ion service to prevent undefined and null header values to be added to Angular Http headers. ISSUES CLOSED: #856
Hello, Unfortunately the "loggingCorrelationIdHttpHeaderName" is added by the StarkHttpService's method "addCorrelationIdentifierHeader", which directly access the headers map and add the undefined header. Thanks for the help :) Edit: I worked around it by setting "loggingCorrelationIdHttpHeaderName" to an empty string. |
I'm submitting a...
Current behavior
When deserializing the
stark-app-config.json
(app.module.ts:99), by default the "loggingCorrelationIdHttpHeaderName" property is either set to the content ofstark-app-config.json
or to "correlation-id" (it can never be undefined).If logging is disabled (
loggingFlushDisabled
set to true), the StarkLoggingServiceImpl will not generate a correlationId (logging.service.ts:69).When using the stark http service, it will try to add the correlation headers (http.service.ts:176) and set the correlation id header to the value of correlationId coming from the StarkLoggingService (which is undefined since it was not generated).
When trying to perform the request it will cause any of the following errors:
Expected behavior
No correlation header should be added if logging is disabled.
Others:
Not a pressing issue, I can work around it.
Environment
The text was updated successfully, but these errors were encountered: