Skip to content

Unable to connect to ServiceControl due to case sensitivity when consuming response headers #1485

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

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

soujay
Copy link
Contributor

@soujay soujay commented Aug 25, 2024

fix for

Symptoms

When attempting to connect to an instance of ServiceControl the following error is shown:

There was an error connecting to ServiceControl. Either the address is not valid or the service is down.

Who's affected

If you are receiving this error even though ServiceControl is confirmed to be running properly.

Root cause

ServiceInsights validations of proper HTTP headers being returned from ServiceControl are not case insensitive. If the casing of the HTTP headers being returned from ServiceControl are being changed in any way, the validations will fail. The HTTP specification indicates that headers are supposed to be case insensitive.

This PR ignores the case while performing string comparisons of the response header keys with the ServiceControlHeaders

@soujay soujay self-assigned this Aug 25, 2024
@soujay soujay added this to the 2.14.0 milestone Aug 25, 2024
@soujay soujay changed the title Response headers ignorecase Ignore case when string comparing response headers with ServiceControlHeaders Aug 25, 2024
@kentdr kentdr merged commit fd2a3a8 into master Aug 29, 2024
3 checks passed
@kentdr kentdr deleted the response-headers-ignorecase branch August 29, 2024 17:51
@kentdr kentdr added the Bug label Aug 29, 2024
@soujay soujay changed the title Ignore case when string comparing response headers with ServiceControlHeaders Unable to connect to ServiceControl even with the valid license and address Sep 4, 2024
@kentdr kentdr changed the title Unable to connect to ServiceControl even with the valid license and address Unable to connect to ServiceControl due to case sensitivity when consuming response headers Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants