Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Update - Error: HTTP 403: Invalid channel stable #788

Closed
AllanOricil opened this issue Jan 9, 2021 · 22 comments
Closed

Can't Update - Error: HTTP 403: Invalid channel stable #788

AllanOricil opened this issue Jan 9, 2021 · 22 comments
Labels
investigating We're actively investigating this issue

Comments

@AllanOricil
Copy link

Summary

Can't Update sfdx - HTTP 403: Invalid channel stable

image

Steps To Reproduce:

No idea. The update command never failed with this error message.

Expected result

sfdx update should update the cli or a least tell exactly what is the problem.

Actual result

sfdx update returns

Error: HTTP 403: Invalid channel stable

Additional information

SFDX CLI Version: 7.81.0 linux-arm64 node-v14.15.0
OS and version: Ubuntu 20

@AllanOricil AllanOricil added the investigating We're actively investigating this issue label Jan 9, 2021
@github-actions
Copy link

github-actions bot commented Jan 9, 2021

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@AllanOricil
Copy link
Author

Could this be related?
#389

@shetzel
Copy link
Contributor

shetzel commented Jan 10, 2021

@AllanOricil - Thanks for reporting. Can you please try again and close this issue if it works for you? I believe I just fixed it.

@AllanOricil
Copy link
Author

@shetzel the error is still happening

image

@amphro
Copy link
Contributor

amphro commented Jan 13, 2021

@AllanOricil can you run with --dev-debug? More specifically I want to know what URL it is failing on. Can you access https://developer.salesforce.com/media/salesforce-cli/manifest.json from your terminal?

@AllanOricil
Copy link
Author

AllanOricil commented Jan 14, 2021

Here is the output. Maybe your service is blocking because of the user agent?
image
image

And I can access that json from the url
image

I also noticed that I can't perform Web OAuth flow from that machine. It might be related. After entering the login credentials it stays loading forever a link. And when I refresh that link it says that an error happened.

@mrichmon12
Copy link

I'm also having this exact problem but from WSL. I actually uninstalled WSL and started from scratch only to run into the issue again. Here is the error from the debug output.

image

@mrichmon12
Copy link

So it looks like wsl-x64 and linux-arm64 are platforms that are not available in the manifest.json file. Does this means these platforms are no longer supported? I've been using the CLI on WSL for quite a long time without any problems.

Here is another issue with the same underlying problem: #610

@AllanOricil
Copy link
Author

AllanOricil commented Jan 14, 2021

So it looks like wsl-x64 and linux-arm64 are platforms that are not available in the manifest.json file. Does this means these platforms are no longer supported? I've been using the CLI on WSL for quite a long time without any problems.

I think they are just missing. Because sfdx is based on Oclif which is written for Node which supports these platforms.

@mrichmon12
Copy link

@AllanOricil were you able to get Web OAuth flow to work at all? That is my main issue right now. Appears to overlap with #783. I'll try the workaround suggested there.

@AllanOricil
Copy link
Author

@AllanOricil were you able to get Web OAuth flow to work at all? That is my main issue right now. Appears to overlap with #783. I'll try the workaround suggested there.

No :/

@mrichmon12
Copy link

So I moved over to the npm installation method, but the latest version of the CLI also fails to successfully web auth there as well. Downgrading to 7.76.0 seemed to do the trick.

@AllanOricil

This comment has been minimized.

@AllanOricil
Copy link
Author

AllanOricil commented Jan 14, 2021

@amphro @mrichmon12 I solved my problem uninstalling sfdx-cli completly and installing it again with npm.
I followed this tutorial

image

But

I can't run the update command. It still outputs the same error message

image

@mrichmon12
Copy link

I can't run the update command. It still outputs the same error message

@AllanOricil As per the Salesforce CLI Setup Guide, when installed via npm you should use npm install --global sfdx-cli to update.

If you are looking for a specific version you can specify the version number as well (e.g.: npm install --global sfdx-cli@7.76.0)

When I downgraded to 7.76.0 my OAuth issues were resolved.

@amphro
Copy link
Contributor

amphro commented Jan 14, 2021

The sfdx update doesn't work for npm installs and will output why. The fact that you are still getting that error @AllanOricil implies that it is still running the installer version. What is the output of which sfdx?

@AllanOricil
Copy link
Author

AllanOricil commented Jan 14, 2021

The sfdx update doesn't work for npm installs and will output why. The fact that you are still getting that error @AllanOricil implies that it is still running the installer version. What is the output of which sfdx?

@amphro I made sure to have everything uninstalled before installing again with npm. It is running the npm "version".

image

@mrichmon12
Copy link

It looks like it must be checking the manifest before indicating it should be updated using npm?

~ sfdx update                                                                                                                                                                                                                 
sfdx-cli: Updating CLI... !
    Error: HTTP 403: Invalid channel stable
~ which sfdx                                                                                                                                                                                                                
/home/mrichmond/.nvm/versions/node/v14.15.4/bin/sfdx

@amphro
Copy link
Contributor

amphro commented Jan 22, 2021

That is odd. The right way to update an npm installed version is to use npm.

I see it is checking the channel then outputting the message:

➜ sfdx update
https://developer.salesforce.com/media/salesforce-cli/sfdx-cli/channels/stable/darwin-x64
{
  version: '7.84.2-a2868a68d5',
  channel: 'stable',
  sha256gz: 'f4b3b318f04b3abdb03f2e13419a0d093ccb94d33b15d174fdf0f0683f629069',
  sha256xz: '67e8eda6613350f39b5d700d84ab3e6ef0c3b95f758197de5bf99d3a4d08b3af',
  node: { compatible: '>=8.10.0', recommended: '12.18.3' }
}
 ›   Warning: Use "npm update --global sfdx-cli" to update npm-based installations.
sfdx-cli: Updating CLI... not updatable
sfdx-cli: Updating plugins... done

Can you run with --dev-debug?

@amphro amphro closed this as completed Jan 22, 2021
@amphro amphro reopened this Jan 22, 2021
@AllanOricil
Copy link
Author

AllanOricil commented Mar 31, 2021

@amphro I can't auth to any org when using sfdx from a raspbery pi. Could this be related somehow? Basically every time I try to auth the browser just keeps loading and nothing happens.

@mshanemc
Copy link
Contributor

mshanemc commented Apr 2, 2021

I think the auth thing is related to #881 which was bothering win/linux for a while earlier this year. It's fixed on recent releases--what's running on the pi?

@AllanOricil
Copy link
Author

This issue is fixed and I was able to auth to an org on the pi. Thank you. I just had to uninstall sfdx, and then install it again (v7.94)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

5 participants