Skip to content

TypeError: response.getHeader is not a function #1

@wiseflat

Description

@wiseflat

De manière aléatoire, le service plante car il ne semble pas obtenir une réponse valide du serveur web.

/opt/node-soundplayer/lib/sound.js:96
      var contentType = response.getHeader('content-type');
                                 ^

TypeError: response.getHeader is not a function
    at ClientRequest.<anonymous> (/opt/node-soundplayer/lib/sound.js:96:34)
    at ClientRequest.g (events.js:260:16)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:415:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
    at Socket.socketOnData (_http_client.js:305:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions