Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-516

Making network requests on Forge can result in sporadic ECONNRESET error

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When making network requests via a Forge App, developers will sometimes see that these requests fail due to an ECONNRESET error.

      This seems to be a known issue with nodejs, more details here.

      Steps to Reproduce

      1. Create Forge app
      2. Make network request
        1. Developers might need to repeat this step to successfully reproduce the error if using a remote server outside of their domain.

      Expected Results

      The request connection should always successfully be made with the remote server.

      Actual Results

      Occasionally, developers can see that network requests are attempted to be made and a ECONNRESET error is produced.

      Workaround

      While we work on a fix, you can either;

      1. Watch for and retry on ECONNRESET as they are not indicative of a real client or server error and can be retried.
      2. Disable keepalive for network requests made from Forge apps such that a new connection is made each time.

              Unassigned Unassigned
              2ee5b34a48bc Matthew Freeman
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: