Skip to content

Refresh app list always give error "Failed to get accounts list for <account name>" #9

@robotiko

Description

@robotiko

Hi have a strider instance running on heroku.
The idea is to deploy a project on another heroku app.

With 1.2 update I managed to link the heroku account (no more localhost error with the heroku oAuth2 dance :D) and now I can see my account as "linked account" in the heroku plugin.
The problem is that clicking the refresh Apps List to get the apps in the combo, it always shows the toast error "Failed to get accounts list for ".
Created the api client and added the client keys as PLUGIN_HEROKU_CLIENT_ID (and KEY) to the heroku app running strider.
-Used Heroku belt as described. Didn't work.
-Added also in the web console as config vars. Still the same
-Even added in strider web console as Environment Variables for the project to build. Same thing.
-Desperation rules, also added as HEROKU_OAUTH_ID and key just in case. Same thing.

Debugging strider when the message appears I see an Error 500 and a json from heroku with
failed to get apps from api: Status: 401; {"id":"unauthorized","error":"Invalid credentials provided."}

Regenerated the api just in case. Same issue.
The thing is that if I try to rebuild the project manually, it shows the project as failed and shows

Error: Invalid heroku configuration. Account not found
at module.exports.init (/app/node_modules/strider-heroku/worker.js:7:15)
at /app/node_modules/strider-simple-runner/lib/index.js:258:14
at /app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:454:21
at /app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:185:13
at /app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:86:13
at Array.forEach (native)
at _forEach (/app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:26:24)
at async.forEach (/app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:85:9)
at _asyncMap (/app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:184:9)
at Object.map (/app/node_modules/strider-simple-runner/node_modules/async/lib/async.js:168:23)

But clicking on configure and then Heroku, it shows the linked heroku account.

Looks like I'm missing something, because it looks so dawn simple : D

Any hint?
thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions