Skip to content

TypeError: Cannot set property 'hostname' of undefined #3514

@JetLua

Description

@JetLua
/mnt/npm/lib/node_modules/hapi/lib/request.js:229
        this.info.hostname = url.hostname;
                           ^

TypeError: Cannot set property 'hostname' of undefined
    at internals.Request._setUrl (/mnt/npm/lib/node_modules/hapi/lib/request.js:229:28)
    at new internals.Request (/mnt/npm/lib/node_modules/hapi/lib/request.js:83:10)
    at module.exports.internals.Generator.internals.Generator.request (/mnt/npm/lib/node_modules/hapi/lib/request.js:31:21)
    at Server.<anonymous> (/mnt/npm/lib/node_modules/hapi/lib/connection.js:260:48)
    at emitTwo (events.js:125:13)
    at Server.emit (events.js:213:7)
    at parserOnIncoming (_http_server.js:601:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
  • node version: 8.0.0
  • hapi version: 16.4.1
  • os: debian 8

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions