Error: Expected reject to be called with Error, got [object Undefined]

I am now also suffering from this problem, after adding a new scope (write:jira-work).

I was able to get rid of it in my dev site by:

  1. Commenting out the new scope. This also required commenting out the REST API call that uses it.
  2. Redeploying to dev. No reinstall.
  3. Forge tunnel.
  4. Refresh browser page. The app works again.
  5. Re-add scope. Redeploy. Refresh page. Accept permissions.
  6. Re-add code that uses the scope. Redeploy. Refresh page. Still working.

I think that there may be a long-standing bug that strikes when adding a scope to an existing app that is already installed.