Skip to content

0x801901f4 : Internal server error (500) when I try to execute winget list and winget install (Source is down) #1437

Closed

Description

@Fukubi

Brief description of your issue

When I try to execute winget list or winget install command I get an 0x801901f4 : Internal error in server (500) error.

Steps to reproduce

Execute winget list, winget install.

[winget list]
Ocorreu um erro inesperado ao executar o comando:
0x801901f4 : Erro interno de servidor (500).

[winget install Mozilla.Firefox]
Ocorreu um erro inesperado ao executar o comando:
0x801901f4 : Erro interno de servidor (500).

Expected behavior

List installed apps (with winget list) or install a new app (with winget install)

Actual behavior

Throw an internal server error

Environment

[winget --info]
Windows Package Manager v1.0.11694
Copyright (c) Microsoft Corporation. Todos os direitos reservados.

Windows: Windows.Desktop v10.0.22000.176
Pacote: Microsoft.DesktopAppInstaller v1.15.11694.0

Registros: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Activity

  1. jedieaston commented on Sep 6, 2021

    @jedieaston
    Contributor

    The newstore source is down, which breaks the client entirely unless you add --source winget to all of your commands. I made a bug about this a few weeks ago: #1349.

    BTW, for anyone at MS troubleshooting, it's the manifestSearch endpoint throwing 500s:

    image

  2. Fukubi commented on Sep 6, 2021

    @Fukubi
    Author

    With --source winget it works perfectly, many thanks.

  3. jedieaston commented on Sep 6, 2021

    @jedieaston
    Contributor

    Demitrius Nelon (@denelon) Can you reopen this? It's the only issue noting that the source is down.

    Edit: I just remembered that it's Labor Day, so the team is probably off. Uh, Deivid Gabriel (@Fukubi), can you do it?

  4. Fukubi commented on Sep 6, 2021

    @Fukubi
    Author

    Yeah, no problem.

  5. changed the title [-]0x801901f4 : Internal server error (500) when I try to execute any command[/-] [+]0x801901f4 : Internal server error (500) when I try to execute winget list and winget install (Source is down)[/+] on Sep 6, 2021
  6. derkrasseleo commented on Sep 7, 2021

    @derkrasseleo

    I just turned on my machine and also got this error..
    image

  7. ket0x4 commented on Sep 7, 2021

    @ket0x4

    I have same issue + I can't download apps from microsoft store too

  8. added
    Issue-Bug
    on Sep 7, 2021
  9. feoh commented on Sep 8, 2021

    @feoh

    Same here and it's super frustrating. Reproduced on both a System76 Thelio and a Lenovo Thinkpad T15 gen2 both running Windows 11 Insiders Beta/latest update.

    I submitted feedback at: https://aka.ms/AAdr7rh

  10. yooakim commented on Sep 8, 2021

    @yooakim

    I have the same issue as well, frustrating.

    PS C:\Users\joakim.westin> winget --info
    Windows Package Manager v1.0.11694
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Windows: Windows.Desktop v10.0.22000.176
    Package: Microsoft.DesktopAppInstaller v1.15.11694.0
    
    Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
    
    Links
    --------------------------------------------------------
    Privacy Statement   https://aka.ms/winget-privacy
    Licence Agreement   https://aka.ms/winget-license
    Third Party Notices https://aka.ms/winget-3rdPartyNotice
    Homepage            https://aka.ms/winget
    

    image

  11. danyalahmed commented on Sep 8, 2021

    @danyalahmed

    I am facing same issue, as mentioned above for now --source winget seems to work

  12. jedieaston commented on Sep 8, 2021

    @jedieaston
    Contributor

    Demitrius Nelon (@denelon) should this issue be moved to microsoft/winget-cli-restsource? I don't know who's responsible for making sure the store source is up...

  13. denelon commented on Sep 8, 2021

    @denelon
    Collaborator

    Easton Pillay (@jedieaston) the REST source for the store packages is a different internal package. We've already contacted them regarding the 500 errors. Deivid Gabriel (@Fukubi) thanks for reopening this. There was a small misunderstanding when implementing the API. I believe the issue for the errors has been resolved, but I wanted to keep this open so we can make sure to do a better job handling these kinds of issues in the client.

  14. 24 remaining items

  15. adrianghc commented on Sep 9, 2021

    @adrianghc

    The newstore source is added by default on Windows 11.

    You can fix it by doing winget source remove newstore

    Do you know if this is by design or if it's a bug?

  16. adrianghc commented on Sep 9, 2021

    @adrianghc

    Maybe? I'm in Brazil using the windows 11, want me to send some infos?

    If it's a regional thing (e.g. because of new server code that needs to roll out across all regions) it should work for everybody at some point, so I'll just check again later.

  17. Jaifroid commented on Sep 9, 2021

    @Jaifroid

    The newstore source is added by default in WinGet on Windows 11 devices.

    You can temporarily fix it by doing winget source remove newstore

    That fixed it in Windows 11, thanks Levvie - she/her (@ItzLevvie).

    image

  18. Jaifroid commented on Sep 9, 2021

    @Jaifroid

    Do you know if this is by design or if it's a bug?

    Not an answer to the question, but I think it's fine for the Microsoft Store to be an available source by default, so long as winget doesn't bomb out if it can't reach one of the stores. It should give a message that the store is unavailable but still install if the right ID or moniker has been set for a package in the main winget repo.

    I would like to be able to set a moniker for the MIcrosoft Store version, so there's no confusion between the packages. The MS Store version will auto-update, so would be the superior choice in principle, but only if I can set different monikers for the different packages. The one in the winget repo is signed with our org's cert. The one in the MS Store is signed with the MS Store cert.

  19. feoh commented on Sep 9, 2021

    @feoh

    +1 this started working for me this morning as well. Thanks to whoever brought it back to life! Having to remember --source winget was a drag :)

  20. linked a pull request that will close this issueSource resilience #1470on Sep 16, 2021
  21. cloudrootab commented on Sep 17, 2021

    @cloudrootab

    I removed the newstore, since it made winget all but unusable (who has time to input --source every time!?). However, I'm trying to add it back again since people are saying it started working again (and it's also working on my laptop). But trying to addit results in the same Internal server error (500)

    winget source add newstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
    Adding source:
    newstore -> https://storeedgefd.dsx.mp.microsoft.com/v9.0
    An unexpected error occurred while executing the command:
    Internal server error (500).

  22. Jaifroid commented on Sep 17, 2021

    @Jaifroid

    I removed the newstore, since it made winget all but unusable (who has time to input --source every time!?). However, I'm trying to add it back again since people are saying it started working again (and it's also working on my laptop). But trying to addit results in the same Internal server error (500)

    I have the same issue.

  23. jedieaston commented on Sep 17, 2021

    @jedieaston
    Contributor

    I think you need to add -t Microsoft.Rest.

    winget source add -t Microsoft.Rest -n newstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 worked for me.

  24. cloudrootab commented on Sep 17, 2021

    @cloudrootab

    I think you need to add -t Microsoft.Rest.

    winget source add -t Microsoft.Rest -n newstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 worked for me.

    Can confirm that it worked. But imho, it's surprising that this was necessary. 'winget source list' doesn't mention "Type" anywhere. So it's far from obvious that this flag needs to be added. Especially since the error code didn't mention it either.

  25. Jaifroid commented on Sep 17, 2021

    @Jaifroid

    I think you need to add -t Microsoft.Rest.

    winget source add -t Microsoft.Rest -n newstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 worked for me.

    Also works for me. Thanks!

  26. denelon commented on Sep 17, 2021

    @denelon
    Collaborator

    You can also run winget source reset to have the client attempt resolving source related issues and add "default" sources back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions