Skip to content

Upgrading caused promises to lose domain propagation #521

Description

@flankstaek

We recently updated from version 2.3.4 to 2.9.12 and in doing so it broke domain propagation.

return platformHttp.get(platformUrl)
  .then(function () {
    return platformHttp.get(platformUrl);
  });

So within this code, our http handler accesses process.domain, within the first promise process.domain is defined and working correctly. But after the .then() process.domain no longer exists.

The only fix we could find was downgrading our installation to 2.8.2 because we needed the changes from there. I'm not sure which version broke it, but it was something between 2.8.2 and 2.9.12. Just thought I should let you all know, let me know if that wasn't clear or if you have any other questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions