keboola / developer-portal-cli-v2

MIT License
0 stars 1 forks source link

get repository fails to fail #9

Closed odinuv closed 5 years ago

odinuv commented 6 years ago

When using valid credentials, but invalid vendor, dev portal returns error

Nov 10 12:50:45 developer-portal developer-portal-v2: {
event: {
requestId: 59819af8-c60d-11e7-bb9b-91c25c1d7ec4
function: developer-portal-v2-prod-apps
path: /vendors/kebooola/apps/keboola.app-what3words/repository
httpMethod: GET
}
error: {
name: UserError
message: You do not have permissions to use vendor kebooola
stack: {
0: UserError at (/var/task/node_modules/bluebird/js/release/async.js:138:12)
}
}
response: {
statusCode: 401
}
}

but cli does not fail for more than 10mins, which causes travis to kill the deploy script https://developers.keboola.com/extend/registration/deployment/#step-2-----add-deploy-script