Misleading error message when an invalid NETLIFY_AUTH_TOKEN
is provided
#6736
Labels
type: bug
code to address defects in shipped code
NETLIFY_AUTH_TOKEN
is provided
#6736
Describe the bug
A confusing error message is shown when running
netlify deploy
with an invalidNETLIFY_AUTH_TOKEN
:I did some inspection and found out that a
TextHTTPError: Unauthorized
error is thrown from line 6 instead of expected line 11 in this file:cli/src/utils/get-site.ts
Lines 4 to 18 in 73f4eb5
See also:
Steps to reproduce
netlify deploy
with a validNETLIFY_SITE_ID
and an invalidNETLIFY_AUTH_TOKEN
.Configuration
Environment
The text was updated successfully, but these errors were encountered: