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

Exception while failing the extension "Failed to update dependencies: Request failed with status code 404" #81

Closed
larsf96 opened this issue Dec 6, 2023 · 11 comments
Assignees

Comments

@larsf96
Copy link

larsf96 commented Dec 6, 2023

Describe the bug
When installing this extension, I see a red warning message "Failed to update dependencies: Request failed with status code 404"

The output of the file downloader is:

ERROR: Request failed with status code 404. Technical details: {"message":"Request failed with status code 404","name":"Error","stack":"Error: Request failed with status code 404\n\tat e.exports (/Users/xxx/.vscode/extensions/mindaro-dev.file-downloader-1.0.13/dist/extension.js:1:10919)\n\tat e.exports (/Users/xxx/.vscode/extensions/mindaro-dev.file-downloader-1.0.13/dist/extension.js:1:13335)\n\tat y.<anonymous> (/Users/xxx/.vscode/extensions/mindaro-dev.file-downloader-1.0.13/dist/extension.js:1:3348)\n\tat y.emit (node:events:525:35)\n\tat y._processResponse (/Users/xxx/.vscode/extensions/mindaro-dev.file-downloader-1.0.13/dist/extension.js:1:47925)\n\tat ClientRequest._onNativeResponse (/Users/xxx/.vscode/extensions/mindaro-dev.file-downloader-1.0.13/dist/extension.js:1:43124)\n\tat Object.onceWrapper (node:events:628:26)\n\tat ClientRequest.emit (node:events:525:35)\n\tat HTTPParser.parserOnIncomingClient (node:_http_client:701:27)\n\tat HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)\n\tat TLSSocket.socketOnData (node:_http_client:542:22)\n\tat TLSSocket.emit (node:events:513:28)\n\tat addChunk (node:internal/streams/readable:324:12)\n\tat readableAddChunk (node:internal/streams/readable:297:9)\n\tat Readable.push (node:internal/streams/readable:234:10)\n\tat TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":5000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/0.26.1"},"responseType":"stream","proxy":false,"method":"get","url":"https://bridgetokubernetes.blob.core.windows.net/zipv2/LKS/kubectl-osx-arm64.zip"},"status":404}
**Mention the platform you are using**
Mention what platform you are using (oss, vscode) and pick the corresponding label.

The extension seems to start a download of the file https://bridgetokubernetes.blob.core.windows.net/zipv2/LKS/kubectl-osx-arm64.zip which is not existing (anymore).

To Reproduce
Steps to reproduce the behavior:

  1. Start VS Code
  2. Install Extension

Expected behavior
The installation should complete without exception

Screenshots
Bildschirmfoto 2023-12-06 um 10 37 19

Desktop (please complete the following information):

  • OS: MacOS 14.1.1
  • VS Code version 1.84.2
@hsubramanianaks
Copy link
Collaborator

@larsf96 Apologies for the inconvenience. We will fix this asap and keep you posted here.

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Dec 6, 2023

@larsf96 the 404 error is fixed but we are getting another failed dependencies error which we are looking into it. We will keep you posted about it.

MicrosoftTeams-image (1)

@hsubramanianaks hsubramanianaks self-assigned this Dec 6, 2023
@hsubramanianaks hsubramanianaks pinned this issue Dec 6, 2023
@hsubramanianaks
Copy link
Collaborator

@larsf96 While we work on getting this worked, you can always revert to previous version of extension and unblock yourself. we will let you know once this is fixed. Thanks for your patience.

@hsubramanianaks
Copy link
Collaborator

@larsf96 when you revert to previous version , it will complain about kubectl minimum version, please close the vscode window and open again it would work. Thanks for your patience.

@hsubramanianaks
Copy link
Collaborator

@larsf96 This seems to be related to code signing the b2k binaries for M1 mac and here is the related issue - dotnet/runtime#49091. I will work on getting this fixed.

@erceth
Copy link

erceth commented Dec 11, 2023

Reverting to a previous version is an effective workaround for me. I'll note that after I reverted and attempted to reinstall dependencies, I received an error that kubectl didn't have execution permission. I got past that by running: sudo chmod 755 ~/Library/Application Support/Code/User/globalStorage/mindaro.mindaro/file-downloader-downloads/bridge/kubectl/osx/kubectl

@hsubramanianaks
Copy link
Collaborator

@erceth and @larsf96 This is related to Azure/Bridge-To-Kubernetes#345, we will be releasing a new version soon and you can test beta version of it here - Azure/Bridge-To-Kubernetes#346 (comment). Please let me know how it goes. Thank you.

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Jan 11, 2024

@erceth @larsf96 This is rolled out to production, please retest and let us know your findings. Thank you.

@larsf96
Copy link
Author

larsf96 commented Jan 15, 2024

Hi @hsubramanianaks
I've just updated the VS code plugin to the latest version, but now I see the following error:
Failed to update dependencies: Failed to load /Users/lars.fahrin/Library/Application Support/Code/User/globalStorage/mindaro.mindaro/file-downloader-downloads/dotnet/host/fxr/7.0.7/libhostfxr.dylib, error: dlopen(/Users/lars.fahrin/Library/Application Support/Code/User/globalStorage/mindaro.mindaro/file-downloader-downloads/dotnet/host/fxr/7.0.7/libhostfxr.dylib, 0x0001): tried: '/Users/lars.fahrin/Library/Application Support/Code/User/globalStorage/mindaro.mindaro/file-downloader-downloads/dotnet/host/fxr/7.0.7/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')),

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Jan 16, 2024

@larsf96 Please follow these instructions and let me know how it goes. Thanks for trying this out. If this works, please feel free to close this issue.

Azure/Bridge-To-Kubernetes#350 (comment)

@larsf96
Copy link
Author

larsf96 commented Jan 16, 2024

Hi @hsubramanianaks
Thanks for the instructions. After deleting the old files everything worked fine with the latest release.
I'll close this issue, thanks for your support! :)

@larsf96 larsf96 closed this as completed Jan 16, 2024
@hsubramanianaks hsubramanianaks unpinned this issue Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants