Code Monkey home page Code Monkey logo

Comments (6)

svsamipillai avatar svsamipillai commented on May 23, 2024 3

This issue gets resolved when you upgrade node. I used the following:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

from insomnia-mockbin.

svsamipillai avatar svsamipillai commented on May 23, 2024 2

Same error is still happening:

ReferenceError: Promise is not defined
   at validator (/usr/src/app/node_modules/har-validator/lib/promise.js:42:14)

from insomnia-mockbin.

bobbytables avatar bobbytables commented on May 23, 2024

Also experiencing this.

from insomnia-mockbin.

orasik avatar orasik commented on May 23, 2024

same here

from insomnia-mockbin.

orasik avatar orasik commented on May 23, 2024

@svsamipillai that didn't work for me. I have changed Dockerfile to use node:8.6.0 and node:alpine and still having the same error.

ReferenceError: Promise is not defined
   at validator (/usr/src/app/node_modules/har-validator/lib/promise.js:42:14)
   at Object.response (/usr/src/app/node_modules/har-validator/lib/promise.js:110:10)
   at Object.module.exports (/usr/src/app/lib/routes/bins/create.js:46:12)
   at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
   at next (/usr/src/app/node_modules/express/lib/router/route.js:131:13)
   at IncomingMessage.<anonymous> (/usr/src/app/lib/middleware/body-parser.js:52:9)
   at IncomingMessage.emit (events.js:92:17)
   at _stream_readable.js:944:16
   at process._tickCallback (node.js:458:13)

from insomnia-mockbin.

orasik avatar orasik commented on May 23, 2024

I have fixed this and changed Dockerfile to docker-compose so you can easily change ports and update configuration.
Please check pull request

from insomnia-mockbin.

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.