GoogleChromeLabs / pptraas.com

Puppeteer as a service
https://pptraas.com
Apache License 2.0
457 stars 78 forks source link

fix: ReferenceError #3

Closed gokaygurcan closed 6 years ago

gokaygurcan commented 6 years ago
ReferenceError: res is not defined
    at enableCors (/app/server.js:11:5)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/express/lib/router/route.js:137:13)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)

Hi, the website returns this error.

I hope it'll help.

Cheers, G.

PaulKinlan commented 6 years ago

Urgh. I should have tested...

PaulKinlan commented 6 years ago

ACtually... this is totallu broke

PaulKinlan commented 6 years ago

Fix incoming - was being arrogant and didn't test properly

gokaygurcan commented 6 years ago

Hehe, happens to best of us, don't worry.