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

Update-Help cmdlet -> 404 #9981

Closed
jmwielandt opened this issue Jun 23, 2019 · 13 comments
Closed

Update-Help cmdlet -> 404 #9981

jmwielandt opened this issue Jun 23, 2019 · 13 comments
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-External The issue is caused by external component(s).

Comments

@jmwielandt
Copy link

Hi,

PS C:\Users\Jose\Desktop> update-help
update-help : Failed to update Help for the module(s) 'Defender, HgsClient, HgsDiagnostics, UEV, Whea, WindowsDeveloperLicense' with UI culture(s) {es-ES} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI.
At line:1 char:1
+ update-help
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : TooManyRedirections,Microsoft.PowerShell.Commands.UpdateHelpCommand

update-help : Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {es-ES} : One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
At line:1 char:1
+ update-help
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand

The same on powershell 5.1 (but saying st about HelpInfoUri).

But Update-Help -Module Microsoft.PowerShell* works, or at least it didn't throw any error.


If I try: Update-Help -UICulture en-US, exactly the same.

Are your servers on?
Because I'm writing this from the same computer where I have the issue. Isn't my internet connection.

A few weeks ago it works, in both powershells.
Thanks~

@jmwielandt jmwielandt added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label Jun 23, 2019
@deanmsands3
Copy link

PwSh 7, Win10x64 1903
I got the same thing (sans HostGuardian).

PS C:\Users\deanm> Update-Help
Update-Help : Failed to update Help for the module(s) 'Defender, UEV, Whea, WindowsDeveloperLicense' with UI culture(s) {en-US} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI.
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : TooManyRedirections,Microsoft.PowerShell.Commands.UpdateHelpCommand

Update-Help : Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {en-US} : One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand

@darthwalsh
Copy link

I see it as well. Looks like a content problem in MicrosoftDocs/windows-powershell-docs#139 and a few other FWLinks

@awsumbill
Copy link

Hey, I don't know if this is helpful or not, but Update-Help worked on Ubuntu 18.04.03 LTS on WSL

@darthwalsh
Copy link

@iSazonov is the issue fixed? A few months ago the Windows PowerShell was still having issues, and I don't see any fixes linked.

@iSazonov
Copy link
Collaborator

iSazonov commented Oct 4, 2019

@darthwalsh It is not a problem with Update-Help code. It is a content issue. You can ask in PowerShell-Doc repo when it will be available.

@iSazonov iSazonov added the Resolution-External The issue is caused by external component(s). label Oct 29, 2019
@tomohulk
Copy link

tomohulk commented Oct 30, 2019

im running into this issue when storing the cab file in the GitHub repo of my projects. To me that seems like an appropriate place to keep the files. why is there a 10 hop limit?

Update-Help : Failed to update Help for the module(s) 'WinSCP' with UI culture(s) {en-US} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI.
Name             : ConsoleHost
Version          : 6.2.3
InstanceId       : ff9dca02-0d82-4543-91fd-a1b6ddce4021
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

@peterennis
Copy link

Just ran into this also:

 Update-Help
Update-Help : Failed to update Help for the module(s) 'Defender, HgsDiagnostics, WindowsDeveloperLicense' with UI culture(s) {en-US} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI.
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : TooManyRedirections,Microsoft.PowerShell.Commands.UpdateHelpCommand

Update-Help : Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI culture(s) {en-US} : One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand

@glenlance
Copy link

we all need some response instead of a flash cursor :
Update-Help -Verbose -Force -ErrorAction SilentlyContinue -UICulture en-US

@jeffpatton1971
Copy link

jeffpatton1971 commented Sep 11, 2020

Team,

For powershell devs working in github, keeping code in GitHub would make sense, but there appear to be weird restrictions on naming and re-directions, can someone actually clarify in stone what we should placing in our HelpInfoUri fields, as it appears a container such as https://github.com/project/cabs isn't good enough as that's basically what I'm doing, and i've received the too many hops message as well as your server isnt' available message.

im running into this issue when storing the cab file in the GitHub repo of my projects. To me that seems like an appropriate place to keep the files. why is there a 10 hop limit?

Update-Help : Failed to update Help for the module(s) 'WinSCP' with UI culture(s) {en-US} : A Help URI cannot contain more than 10 redirections. Specify a valid Help URI.
Name             : ConsoleHost
Version          : 6.2.3
InstanceId       : ff9dca02-0d82-4543-91fd-a1b6ddce4021
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace
GitHub
GitHub is where people build software. More than 50 million people use GitHub to discover, fork, and contribute to over 100 million projects.

@Jaykul
Copy link
Contributor

Jaykul commented Sep 12, 2020

@tomohulk @jeffpatton1971 you really need to open a new bug if you want to talk about the hop limit ...

But for what it's worth, the link needs to lead to an actual .cab file (see Supporting Updateable Help). You also need to use a permanent link to the file on a specific branch and then switch to the "raw" version...

It might be better to set up github pages to host the cab on....

@jeffpatton1971
Copy link

@Jaykul lol fair..but FWIW I've gotten my issue sorted, using github to store the files I needed the rawgithub.com host and to have the trailing slash on the URL, as well as make sure that the version number was a proper system.version value.

@ThomasNieto
Copy link
Contributor

@jeffpatton1971 do you have an example module/repo where you have that working?

@jeffpatton1971
Copy link

jeffpatton1971 commented Sep 13, 2020

hey @ThomasNieto I sure do here's the link..

https://github.com/SchemaModule/PowerShell

GitHub
PowerShell Module for working with JSON schema. Contribute to SchemaModule/PowerShell development by creating an account on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-External The issue is caused by external component(s).
Projects
None yet
Development

No branches or pull requests