Cli: TextHTTPError: Forbidden

Created on 20 Dec 2019  路  8Comments  路  Source: netlify/cli

- Do you want to request a _feature_ or report a _bug_? I think it's a bug

- What is the current behavior?
I get TextHTTPError: Forbidden for _almost_ all cli commands

- If the current behavior is a bug, please provide the steps to reproduce.
If it's not a bug, I have no idea how I can fix it.

- What is the expected behavior?
Cli should work.

- Local Environment Information
Paste the results of netlify status --verbose here

Screenshot:
netlify

area login area status bug

All 8 comments

@dehghani-mehdi Can you try netlify logout and netlify login!

It could also be that the user you're logged in as doesn't have access to the site your project is linked to. In that case, doing netlify unlink and netlify link again might help.

Can you try netlify logout and netlify login!

I set the NETLIFY_AUTH_TOKEN variable manually, should I try with new token?

It could also be that the user you're logged in as doesn't have access to the site your project is linked to

I don't think so, I have only one Netlify account.

Yes, try with a new token and see if that fixes the problem.

I just tried, but nothing changes.

I should point out, the netlify login also failed, that's why I set the token manually. so I think this issue is not related to token or user account.

@dehghani-mehdi Can you try netlify logout and netlify login!

Thank you @dehghani-mehdi , It worked for me, I could try it by my self, but the 'netlify help' do not show logout command...
Maybe someone can do a PR to fix it, unfortunately I currently have no time, if there is someone to do it would be awesome.
Thank you man

Might be related to https://github.com/netlify/cli/issues/174, but not sure.
Revoking the CLI app permissions or using an invalid token results in TextHTTPError: Unauthorized and not TextHTTPError: Forbidden as specified in the original issue.

Confirming I got this too (netlify-cli/2.61.1). Catching Unauthorized might be nice.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karl-cardenas-coding picture karl-cardenas-coding  路  3Comments

RaeesBhatti picture RaeesBhatti  路  4Comments

cco3 picture cco3  路  4Comments

bcomnes picture bcomnes  路  3Comments

mrlubos picture mrlubos  路  5Comments