I don’t have a lot of experience with databases, so this might be an obvious fix:

I have my app’ s front-end, server and database deployed on Render. Locally everything is working as intended (I am using MySQL), but on the deployed version I am getting this error and I can’t seem to troubleshoot it:

POST https://swap-right-server.onrender.comusers/ net::ERR_NAME_NOT_RESOLVED
(anonymous) @ xhr.js:247
xhr @ xhr.js:49
En @ dispatchRequest.js:51
value @ Axios.js:142
(anonymous) @ Axios.js:181
(anonymous) @ bind.js:5
(anonymous) @ Register.jsx:40
c @ regeneratorRuntime.js:44
(anonymous) @ regeneratorRuntime.js:125
(anonymous) @ regeneratorRuntime.js:69
Xe @ asyncToGenerator.js:3
i @ asyncToGenerator.js:22
(anonymous) @ asyncToGenerator.js:27
(anonymous) @ asyncToGenerator.js:19
(anonymous) @ Register.jsx:13
Ie @ react-dom.production.min.js:54
He @ react-dom.production.min.js:54
(anonymous) @ react-dom.production.min.js:55
Dr @ react-dom.production.min.js:105
Ur @ react-dom.production.min.js:106
(anonymous) @ react-dom.production.min.js:117
cs @ react-dom.production.min.js:274
je @ react-dom.production.min.js:52
Vr @ react-dom.production.min.js:109
Gt @ react-dom.production.min.js:74
qt @ react-dom.production.min.js:73

I am pretty sure my Environment Variables are set up correctly and my knex file makes sense.
You can look at my code here:

Any suggestion is appreciated.



It looks like you have a typo:

POST https://swap-right-server.onrender.comusers/ net::ERR_NAME_NOT_RESOLVED

I expect you need a / between .com and users/


Well that was dumb thank you!

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