Skip to content
This repository was archived by the owner on Mar 20, 2022. It is now read-only.
This repository was archived by the owner on Mar 20, 2022. It is now read-only.

Error when using Express #9

@cohenerickson

Description

@cohenerickson

/home/runner/Palladium/lib/server/index.js:20
if (server!={}) server.on('request', (req, res) => {if(req.headers.useragent === 'googlebot') return res.writeHead(403).end('');})
^

TypeError: server.on is not a function
at new Smoke (/home/runner/Palladium/lib/server/index.js:20:28)
at Object. (/home/runner/Palladium/examples/express-server/index.js:6:15)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions