Getting `Invalid request rewrite` error (Error 1036)

My service is running behind Cloudflare and some of URL are getting following error:

# Error 1036

Ray ID: 5f7b21f27d7fdd93 • 2020-11-25 11:47:02 UTC

## Invalid request rewrite

## What happened?

You've requested a page on a website (mermaid.ink) that tried to apply a rewrite rule, but that rewrite is not valid.

## What can I do?

It is possible that your request contains an unexpectedly long value.

This is a example URL

Is this because of too long URL?

Probably yes.

1 Like

Are you the owner of the website? What are you trying to rewrite?

Yes, I’m the owner of the website.

No… As far as I know, I don’t rewrite any URL except two Page Rules:

I can’t find any related information about Error 1036.

You may need to contact Cloudflare support: https://dash.cloudflare.com/?account=support and select Get More Help.

Or, try to shorten the length of the URL if possible.

1 Like

Thanks! I’ve created a support ticket and waiting for response.

Yes, that might be a way to solve the issue. this is a bit of surprise that the length of URL is more restricted than usual scenario or even browser’s boundary.

It works if I directly access my service with the same path (e.g. http://service_ip/)

1 Like

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