By Whyisjacob
I have a Node API on a Droplet with a React Front End. When I spin up the environments locally the API read/writes just fine but when I deploy them on their respective Droplets, I can read data from the Node API but I can not write data.
The react Droplet can read and display the data from the API droplet but when it writes, the API sends a 200 response but no data is actually written.
When I investigate on the API Droplet server, I don’t notice anything in the error logs (Nginx) but apparently I am missing something.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
Consider following scenario, please. Your API has got a bug, supposedly. You get an OK status (200) because data was successfully transferred from front-end app to back-end, without checking if it was actually written. So, I would start troubleshooting your issue on Google Cloud SQL side. I would check permissions for accessing SQL database.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.