Comments (7)
Can you show the error stack trace?
Also it looks like you're using 1.x
of Fortune.js. 2.x
and above removed the defineType
method and moved all setup into the constructor. Maybe that is the problem?
from fortune-postgres.
[nodemon] 1.8.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
Endpoints server is listening on port 4000...
events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::4000
at Object.exports._errnoException (util.js:855:11)
at exports._exceptionWithHostPort (util.js:878:20)
at Server._listen2 (net.js:1237:14)
at listen (net.js:1273:10)
at Server.listen (net.js:1369:5)
at /home/makjacobsen/sandbox/beemodo-endpoints/index.js:46:9
at tryCatcher (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/promise.js:497:31)
at Promise._settlePromise (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/promise.js:555:18)
at Promise._settlePromise0 (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/promise.js:600:10)
at Promise._settlePromises (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/promise.js:683:18)
at Async._drainQueue (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/async.js:125:16)
at Async._drainQueues (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/async.js:135:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/makjacobsen/sandbox/beemodo-endpoints/node_modules/bluebird/js/release/async.js:16:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
[nodemon] app crashed - waiting for file changes before starting...
from fortune-postgres.
Looks like you have something else running on port 4000 and it's unrelated to this project :^)
from fortune-postgres.
I haven't opened or closed any program and now when I run fortune again everything is fine.
The strange thing was it failed when the parent id is included and worked when I delete it. I tried this 3 times :/
from fortune-postgres.
Thanks :)
from fortune-postgres.
FYI, the tests cover linking to the same type quite well: https://github.com/fortunejs/fortune/blob/master/test/integration/test_instance.js
from fortune-postgres.
Found the reason. Nodemon didn't terminated correctly so it was stil running as a background process and it kept starting fortune as a background process as well every time i save the file.
from fortune-postgres.
Related Issues (20)
- A new column cannot have a not-null constraint HOT 3
- Number primaryKeyType not using numbers HOT 3
- Client pooling HOT 6
- Any plans for join tables for many-to-many? HOT 2
- Delete resolve to early HOT 7
- Complete n00b question -- apologies HOT 3
- Auto-generated IDs can sometimes have backslash in them HOT 4
- Sharing DB connections with the rest of the app HOT 2
- node-postgres usage is "soft-deprecated"
- TODOs
- Error when no database named "postgres" exists HOT 7
- Deadlock when connection pool is exhausted
- fortune-postgres 1.6.9 is not compatible with node 8.x LTS HOT 1
- Query to information_schema.columns selects columns from all schemas HOT 3
- How to specify the primary key of a type? HOT 3
- Connection terminated due to connection timeout
- Hasmany relation creates __source_targets_inverse column: why? HOT 1
- Implement `range` and `exists` HOT 1
- Implement transactions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fortune-postgres.