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

Error when devcontainer up #849

Open
AvishayHirsh opened this issue Jun 24, 2024 · 2 comments
Open

Error when devcontainer up #849

AvishayHirsh opened this issue Jun 24, 2024 · 2 comments

Comments

@AvishayHirsh
Copy link

AvishayHirsh commented Jun 24, 2024

using 0.60 version of the cli i got :

No user features to update

TypeError: t.startsWith is not a function

    at ytA (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:465:2285)

    at NH (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:464:739)

    at async KtA (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:481:3692)

    at async AB (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:481:4807)

    at async hrA (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:661:13255)

    at async lrA (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:661:12996)

{"outcome":"error","message":"t.startsWith is not a function","description":"An error occurred setting up the container."}

The issue was reproduced in jenkins (where we have the CLI embedded there) but self resolved after a new pod created that runs the cli, (btw: no devcontainer.json changes happend in between) so i assume it is something related to caches or some files/data stored by the cli ?

@samruddhikhandale
Copy link
Member

I wonder if there's some kind of caching issue as the CLI might cache certain data for performance reasons. If this cache becomes corrupted or contains unexpected data types, it could lead to errors. A new pod would start with a clean state, which could explain why the issue resolved itself.

Can you update the cli version to v0.65.0 and retry?

@AvishayHirsh
Copy link
Author

the issue somehow always reproduced in some env setup i do not have access anymore so unfortunately i can't reproduice , but i think the Exception stack is enough to see there is something in code that expected a different Type inside it, so i would suggest adding a more strict check here and print to log the actual object to see what is it in case it happens again.

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

No branches or pull requests

2 participants