Improve error message for pipe with IP allowlist enabled

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • Component/s: Pipelines - Pipes
    • None
    • 3
    • Severity 3 - Minor
    • 610

      Issue Summary

      When using the Atlassian pipe Bitbucket build statistics with the premium feature of IP Allowlisting enabled, the pipe will fail without a clear message for the user.

      For some builds, the user receives the error message below, and in other cases, doesn't.

      {"type": "error", "error": {"message": "To access this repository, an admin must whitelist your IP."}}
      

       

      Steps to Reproduce

      1. Enabled the premium feature of IP allow listing.
      2. Create a pipeline build and use the Bitbucket build statistics pipe.

      Expected Results

      The user expects the build to work or an error message indicating what happened.

      Actual Results

      The user is presented with the following error message:

      ✖ 403 Client Error: Forbidden for url: https://api.bitbucket.org/2.0/repositories/<workspaceid>/<repo-slug>/pipelines/?sort=-created_on&page=1&pagelen=100
      

      Workaround

      The workaround is to insert all Bitbucket Pipelines IPs into the allowed list.

              Assignee:
              Unassigned
              Reporter:
              Bruno M.
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: