Skip to content

(nodejs) Failure to log "success" message when event dispatched #124

@tylerbrandt

Description

@tylerbrandt

Since #98, the requestCallback never gets called with a second argument, because its role is a 'response' handler for HttpClientRequest:

The optional callback parameter will be added as a one-time listener for the 'response' event.
src: https://nodejs.org/api/http.html#http_http_request_options_callback

As a result, the callback defined in __dispatchEvent currently never gets called in nodejs, and as a result we don't log any messages for LOG_MESSAGES.ACTIVATE_USER or LOG_MESSAGES.TRACK_EVENT.

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