diff --git a/src/developer.js b/src/developer.js index 68d3e19fd..a2cf5fad1 100644 --- a/src/developer.js +++ b/src/developer.js @@ -90,7 +90,7 @@ function getNonApprovedApps(callback) { var url = config.apiServerOrigin() + '/api/v1/boxes/' + config.fqdn() + '/apps'; superagent.get(url).query({ token: config.token(), boxVersion: config.version() }).end(function (error, result) { if (error && !error.response) return callback(new DeveloperError(DeveloperError.EXTERNAL_ERROR, error)); - if (result.statusCode === 401) { + if (result.statusCode === 401 || result.statusCode === 403) { debug('Failed to list apps in development. Appstore token invalid or missing. Returning empty list.', result.body); return callback(null, []); }