# Error 522 - cloudflare

**URL:** <https://answers.netlify.com/t/error-522-cloudflare/5909>\
**Category:** Support\
**Tags:** netlify-dns-https-ssl\
**Created:** [December 6, 2019, 2:42pm UTC](https://answers.netlify.com/t/error-522-cloudflare/5909 "2019-12-06T14:42:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgauvi](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/cgauvi/32/4662_2.png) [@cgauvi](https://answers.netlify.com/u/cgauvi)\
**Post date:** [December 6, 2019, 2:42pm UTC](https://answers.netlify.com/t/error-522-cloudflare/5909/1 "2019-12-06T14:42:14Z")

</div>

Hi,

I received the following error after months of normal operations:  
Error: 522 Ray ID: 53cf9b438a34ca4b • 2019-11-28 21:59:00 UTC.

This seems to be due to some problematic interaction between cloudflare and netlify.

Cloudflare engineers suspect that this was caused by packet loss.

Any ideas?

-Charles

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [December 6, 2019, 11:24pm UTC](https://answers.netlify.com/t/error-522-cloudflare/5909/2 "2019-12-06T23:24:43Z")

</div>

Hi Charles,

The only way I’m aware of that you’d get this error is if you use this unsupported setup:

> [@\[Support Guide\] What problems could occur when using Cloudflare in front of Netlify?](https://answers.netlify.com/t/common-issue-why-isn-t-my-ssl-certificate-provisioning-automatically-with-cloudflare-netlify-are-there-other-problems-with-using-cloudflare-in-front-of-netlify/138):
>
> Last reviewed by Netlify Support - August, 2023 Note: We recommend not using both Cloudflare’s CDN (“Accelerate and Protect”, the orange cloud in their UI) and Netlify for the same site at the same time. Why? Read on! Netlify’s web service is not designed to work optimally with another CDN “in front of” our CDN. [Proxying to our service is in general not supported](https://answers.netlify.com/t/support-guide-why-not-proxy-to-netlify/8869) and we advise you not to do it for best hosting results. Cloudflare has made similar statements that it doesn’t recommend this usa…

Does that match your config? If so, you’d need to revert it before we can provide any technical support - our CDN works better when there isn’t anything between us and the browser.

---

<div class="post-metadata">

**Author:** ![cgauvi](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/cgauvi/32/4662_2.png) [@cgauvi](https://answers.netlify.com/u/cgauvi)\
**Post date:** [December 6, 2019, 11:51pm UTC](https://answers.netlify.com/t/error-522-cloudflare/5909/3 "2019-12-06T23:51:13Z")

</div>

Hi

Yep this matches my setup. Ok I’ve reverted back to only netlify and this seems to solve the problem. Fyi having Cloudflare in front seemed to speed up page loading (particularly for mobile if that makes any sense)

Thanks!
