Suddenly error invalid-input-response

What is the name of the domain?

odontool.it

What is the error message?

invalid-input-response

What is the issue you’re encountering

I’m getting invalid-input-response when trying to resolve the challenge. The site is working from months and from this afternoon the users can’t register and get this error message.

What steps have you taken to resolve the issue?

Checked the KEYS for both client and server.

What are the steps to reproduce the issue?

Just try to register.

I found the problem. In the server I was getting the remoteIp using

req.get(“origin”)

I checked in the docs and changed to

req.get(“CF-Connecting-IP”)

With this correction I was able to register.

The only thing it’s that this has worked for more than a year and only today the problem pop up.

Basically, ensure you are sending the same IP address when verifying the token as the IP address of the user that requested the token.

To clarify why that fixes it, if you send provide the remoteip property in the request then Cloudflare will compare that to the IP that requested the token. If these values do not match, such as getting the IP address the wrong way, then it will fail.

I expect the enforcement of the remoteip and origin IP address was only enabled recently as up until sometime yesterday our system was working fine.

Status page for this. The issue should be resolved now, thanks!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.