Hosting a Node.js app with HubSpot integration after domain transfer to Cloudflare

What is the name of the domain?

What is the error number?

n/a

What is the error message?

“Network response was not ok” (displayed on the webpage) “Failed to load resource: the server responded with a status of 404 ()” (in the console) “Error: Network response was not ok at script.js:45:17” (in the console)

What is the issue you’re encountering

After transferring my domain to Cloudflare, I’m having trouble with my contact form at Contact OrbDoc | AI-Powered Medical Solutions Support. When submitting the form, I receive a “Network response was not ok” error. The form accepts input, but the submission fails. I’m struggling to set up my Node.js application on Cloudflare, which needs to handle form submissions and send data to HubSpot CRM. I’m unsure how to configure server-side processing, reverse proxy, and ports correctly in this new environment.

What steps have you taken to resolve the issue?

I transferred my domain from Namecheap to Cloudflare. I’ve attempted to set up my Node.js application on Cloudflare’s infrastructure. I’ve checked the script.js file, particularly around line 45, for potential issues. I’ve verified that all necessary resources are properly linked and accessible. I’ve also investigated potential network connectivity issues between the application and server. I’ve tested the contact form by filling it out and attempting to submit it. Finally, I’ve researched Cloudflare’s hosting capabilities for Node.js applications and looked into options for securely storing environment variables for API tokens.

What are the steps to reproduce the issue?

Go to Contact OrbDoc | AI-Powered Medical Solutions Support
Fill out the contact form with any name, email, and message
Click the “Contact Us” button
Observe the “Network response was not ok” error message appearing below the form

Screenshot of the error

Check the Network tab of your browser developer toolbar.

You’re POSTing the form to this URL: https://orbdoc.com/submit-to-hubspot

But a LiteSpeed webserver server is returning 404 for this URL. That’s definitely not from Cloudflare. Note that the entire site, including the script.js file you mentioned, is also being served from the LiteSpeed webserver.

So I’m not exactly sure what you mean when you say “I’ve attempted to set up my Node.js application on Cloudflare’s infrastructure.”

The 404 problem is at your origin LiteSpeed server, and that’s where you should go to fix it.

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.