Website: Update logged warnings in get-vpp-app-metadata (#38313)

Changes:
- Updated the get-vpp-app-metadata action to not log warnings if a Fleet
server sends a request with an invalid vpp token
This commit is contained in:
Eric 2026-01-14 09:55:11 -06:00 committed by GitHub
parent ae73f90327
commit 19efc42871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,10 @@ module.exports = {
}
})
.tolerate((err)=>{
sails.log.warn(`When a Fleet instance sent a proxied request to the Apple App Store API, an error occured. Full error: ${require('util').inspect(err)}`);
// Ignore invalid stoken vpp token responses when logging errors returned by the Apple API.
if(err.statusCode !== 403) {
sails.log.warn(`When a Fleet instance sent a proxied request to the Apple App Store API, an error occured. Full error: ${require('util').inspect(err)}`);
}
return err;
});