Coder Social home page Coder Social logo

perent id error about fortune-postgres HOT 7 CLOSED

fortunejs avatar fortunejs commented on June 8, 2024
perent id error

from fortune-postgres.

Comments (7)

gr0uch avatar gr0uch commented on June 8, 2024

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.

mak1986 avatar mak1986 commented on June 8, 2024
[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.

gr0uch avatar gr0uch commented on June 8, 2024

Looks like you have something else running on port 4000 and it's unrelated to this project :^)

from fortune-postgres.

mak1986 avatar mak1986 commented on June 8, 2024

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.

mak1986 avatar mak1986 commented on June 8, 2024

Thanks :)

from fortune-postgres.

gr0uch avatar gr0uch commented on June 8, 2024

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.

mak1986 avatar mak1986 commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.