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

Newly installed Forge apps using Storage are throwing Request principal is not authorized to use storage resource

XMLWordPrintable

    • Minor

      Issue Summary

      When a Forge app is installed and has storage:app in scope and uses Forge Storage, the permissions might not be cached in the same region as the app is installed into. As a result for a short time (maybe about 1 min) the Forge app will throw the error

      APIError: Request principal is not authorized to use storage resource 

      The permissions will eventually synchronise and the app will start to function correctly.

      Steps to Reproduce

      1. Create a Forge app that uses storage
      2. Install in to a site with `forge install`

      Expected Results

      The app works correctly.

      Actual Results

      The below exception is thrown in the Forge logs:

      Error: Request principal is not authorized to use storage resource at <anonymous> (webpack://forge/src/index.js:63:13) 
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

            22714193a617 Rodolfo Candido
            jrichards@atlassian.com James Richards
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: