Netlify not being compatible with cloudflare getting 522 error

First time asking a question on forum PLEASE help

See I have created an Ecom website using mern. Deployed it in netlify. Working fine. Brought a custom domain from hostinger myname.com.

Now at this point I wanted to use cloudflare DNS in middle (free version of cloud flare) for security and monitoring reasons. What I did was i added the nameservers of cloudflare to my domain hostinger and I forgot what I did but at that time it was working fine. With the help of myname.com I was able to go to my webpage.

At this point I have 2 build in netlify one was myname.netlify.app the another one was myname.com. both of them were from same repo automatically getting deployed. Everything was good working fine until this point.

Now at 9:00 ist when I tried to access myname.com it said the req gone to cloudflare. Cloudflare passed the req to hosted site but got connection timeout throwing 522 error for the main page. But I was able to access my site from mynane.netlify.app

Due to the panic I deleted one of the production build of myname.com. now I was left with myname.netlify.app. here I tried to add the custom domain with the default feature netlify gives to every user. I also changed the nameservers of hostinger which was pointing towards cloudflare with netlify webserver/nameservers. Now I only have one build . And now my myname.com has no ssl it shows it is in secure but it is accessible.

Here is the problem. My cloudflare also says it is active but I don’t think so because I have change the hostinger nameservers to point directly towards netlify. Now what should I do so that my hostinger points to cloudflare and my website being hosted on netlify and cloudflare pointing to netlify to show my website.

I can’t just delete cloudflare and recreate new account as my custom mail is also linked with it.

With the name redacted from the thread, you have provided no information to help you. I see a similar ticket in the helpdesk, which might be from you. But if you’re going through double efforts to open 2 threads (we highly recommend against it), at least include the info so we can check.

If you haven’t opened a helpdesk ticket, please share the domain or site name so we can check.

The site name is inayapoeticthreads.com. the site is live but I don’t know why many of my api calls to vercel are getting error. I think it can be from my side.

Wider discussion here: Sites down, Awaiting Netlify DNS - #36 by marcus

1 Like