https://linen.dev logo
Hi i'm try to use the vscode exetions
# mirrord-help
a
Hi i'm try to use the vscode exetions for mirrord and get the following error 2025-05-20T08:24:03.524216Z ERROR mirrord::connection: error: mirrord operator API failed: creating a websocket connection failed with ApiError: Cannot find namespace
default
for targetless run.: 400 Bad Request (ErrorResponse { status: "Failure", message: "Cannot find namespace
default
for targetless run.", reason: "400 Bad Request", code: 400 }) at mirrord/cli/src/connection.rs:112 Error: × mirrord operator API failed: creating a websocket connection failed with │ ApiError: Cannot find namespace
default
for targetless run.: 400 Bad │ Request (ErrorResponse { status: "Failure", message: "Cannot find │ namespace
default
for targetless run.", reason: "400 Bad Request", code: │ 400 }) but i gave it a namespace this is my mirrord config { "feature": { "network": { "incoming": "mirror", "outgoing": true }, "fs": "read", "env": true }, "operator": false, "agent": { "namespace": "dev-amir-prompt" }, "target": { "namespace": "dev-amir-prompt" } }
a
Hey Amir, are you using the operator?
a
no
If I’m working from the command line, it works like magic.
a
Where is the mirrord json file placed ?
I think the extension isn’t picking it up
When you’re launching it should say which config it’s using and have a button to jump to it
a
the active config is set to the right one
a
Can you share the command line used when running from cli?
a
yep
mirrord exec --target pod/ps-backend-7d4bbd9c77-68r2h -- npx ts-node-dev --project ./tsconfig.app.json src/index.ts
a
Do you see the target selection dialog?
In vscode
a
yep
a
And you select a pod?
a
yep
It takes about 30 seconds, give or take, and then I get an error.
a
Are you available for a screen share ?
a
i will be in 10 minutes
a
Great that works for me too
Send me your email in DM I’ll send a calendar invite
a
Hi Aviram, I tried connecting Mirror to my coworker’s Mac, but for some reason, it couldn’t connect to other pods in the enviroment . any idea what could be the issue? when he use the cli its works
a
it's a Mac and he's running native?
a
We figured it out! It was just a simple VSCode setting. Thanks
a
Which setting?
(for future reference 🙂 )
a
we add this flag " "experimentalNetworking": "off" to the launch.json and it solved it
a
Thanks! Never heard of that 😐
2 Views