Load Balancer - Reponse Code Mismatch Error

#1

Trying to figure out how to get healthchecks to work. I keep getting a response Code mismatch error, but it doesn’t tell me the response code that is being returned. I used some external websites to test, and everything is returning code 200 OK. I have code 2xx in the response code match, and it still fails.

anyone?

0 Likes

#2

Right now you have 4xx in the response code match.

But either way the response code mismatch means when we connected to the origin we got a response code that didn’t match the pattern specified. If an origin / link is flaky a 521 or other origin timeout issue would also potentially cause a mismatch failure I believe.

0 Likes

#3

Yes, I was trying to figure out which response code was being returned since the description was vague.

Any idea how to figure out why it’s returning a 404?

Https://mobile.retransfreight.com/healthcheck.html

Theodore H Higgins II

Director - Information Technology

ReTrans Freight, Inc.

A Kuehne + Nagel Company

Tel: +1 774 888 0336

[email protected]

Confidentiality Notice: This email and any attachments accompanying this electronic transmission may contain confidential and privileged information. The information is intended for the sole use of the intended recipient(s) and entity named above. If you are
not the intended recipient, you are hereby notified that any further distribution, disclosure, copying, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this transmission in error, please
notify the sender immediately and destroy all copies of the original message.

0 Likes

#4

You may want to set the host header in your health check https://support.cloudflare.com/hc/en-us/articles/115000002528-Load-Balancing-Health-Debugging-Failure-Reasons

0 Likes

#5

I’m not getting a TLS mismatch. I’m getting an error code mismatch. the code thats being returned is 404, which doesn’t make any sense since i know the page is online.

0 Likes

#6

Host header shows up in a couple of possible scenarios in that article. If you add mobile.retransfreight.com does the check then work?

0 Likes

#7

i added it, and i’m still returning a 404.

Question: the health check uses the host header plus the domain for the check, correct?

for instance, my domain is retransfreight dot com. Is the health check going to https://retransfreight.com/healthcheck.html or is it going to https://mobile.retransfreight.com/healthcheck.html ?

0 Likes

#8

The header name should be Host and the value mobile.retransfreight.com

0 Likes

#9

*face palm.

I get it now. Sorry for the confusion! Thanks for the help! It’s working now!

1 Like