Unable to create first user. Getting refused connection #728
-
No idea why this isn't working. All I've done is create a payload project and run I am running a node instance on a machine on my local network, I have all ports open in ufw to my machine I'm currently working on. Terminal Reports:
The admin page loads and then both Chrome and Edge report:
When Clicking on the Create button at
No idea how to troubleshoot the issue as I can't see any files or anyone else having this issue. I'm running v16 of nodejs and mongo is working correctly and has built the Database and collections. It seems as if Payload stumbled at the last hurdle and I have no idea what's causing it. Anyone have any idea what's causing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @GronsoBitburg — I think this sounds like it has to do with your local environment rather than Payload. it seems like you are not able to connect to What I'd do is try and start a simple Express server listening on port Create a new directory and put the following two files in it:
{
"name": "express-app",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.18.1"
}
}
const express = require('express');
const expressApp = express();
expressApp.get('/', (_, res) => {
return res.send('Hello world');
})
expressApp.listen(3000, async () => {
console.log('Now listening on port 3000');
}); Then run |
Beta Was this translation helpful? Give feedback.
Hey @GronsoBitburg — I think this sounds like it has to do with your local environment rather than Payload. it seems like you are not able to connect to
localhost:3000
.What I'd do is try and start a simple Express server listening on port
3000
and then try and load it in your browser to see if you can access it.Create a new directory and put the following two files in it:
package.json
server.js