Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker - ReferenceError: Promise is not defined #77

Closed
venkat091929 opened this issue Jan 30, 2018 · 4 comments
Closed

Docker - ReferenceError: Promise is not defined #77

venkat091929 opened this issue Jan 30, 2018 · 4 comments

Comments

@venkat091929
Copy link

I have same problem with Docker, could not able to create a bin. Get the below error. I have tried updated docker file with node version but no use ( followed this #62)

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. (/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)

@venkat091929
Copy link
Author

Any updates/suggestions please?

@Neirda24
Copy link

Hi. Have the same problem. Created a simple docker-compose.yml file

version: '3.5'
services:
    redis:
        image: 'redis:3.2'
    mockbin:
        image: 'mashape/mockbin'
        ports:
          - '8080:8080'

but it doesn't seems to be working

@Neirda24
Copy link

seems to be fixed with brianlow/mockbin

@LeKhan9
Copy link

LeKhan9 commented Jun 25, 2020

This is still an issue with the latest Dockerfile on the main branch. brianlow/mockbin does seem to be performant. There are some PRs that address this, but are pending merge. At the very least, maybe we can upgrade to use the latest node in the Dockerfile.

@jackkav jackkav closed this as completed Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants