Failed to load resource: api-kube/apis/fake.lensapps.dev
Describe the bug Error message: appears on startup:
Failed to load resource: Failed to
GET "https://127.0.0.1:57095/api-kube/apis/fake.lensapps.dev/v1/applicationinstance/1237b568-1f5f-4b7b-95de-3b3cee094b21": Not Found (404)
To Reproduce Steps to reproduce the behavior: I have two clusters. When I connect to the second, I don't see this message. When connecting to the other, it appears. I have been connecting to this cluster for over a month and never saw this message, however from today I see it systematically.
Expected behavior This message appears each time I startup Lens.
Screenshots
Environment (please complete the following information):
- Lens Version: 2025.4.92142-latest
- OS: Windows 11
- Choco
Logs: When you run the application executable from command line you will see some logging output. Please paste them here:
Your logs go here...
C:\ProgramData\Microsoft\Windows\Start Menu\Programs>"C:\Program Files\Lens\Lens.exe"
C:\ProgramData\Microsoft\Windows\Start Menu\Programs>
info: έΨς [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "before-anything" took 34.47 ms.
Individual runnables took:
- app-paths-setup-main:setup-app-paths 1.17 ms +0ms
info: έΨς [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "before-electron-is-ready-injection-token" took 85.09 ms.
Individual runnables took:
- internal-proxy-main:setup-lens-proxy-certificate 82.49 ms
- lens-core-main:enforce-single-application-instance 0.71 ms
- electron-main:setup-tracking-of-auto-updating 0.19 ms
- lens-core-main:setup-cleanup-of-backend-on-quit 0.14 ms
- lens-core-main:setup-behaviour-on-close-of-last-window 0.13 ms
- lens-core-main:setup-sentry 0.11 ms
- lens-core-main:setup-immer 0.1 ms
- electron-main:setup-runnables-after-window-is-opened 0.08 ms
- lens-core-main:setup-hostnames 0.04 ms
- lens-core-main:setup-proxy-env 0.04 ms
- electron-main:setup-application-name 0.03 ms
- electron-main:setup-hardware-acceleration 0.03 ms
- lens-core-main:setup-mobx 0.02 ms +86ms
info: έΨς [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "first-thing-before-application-is-loading-injection-token" took 0.05 ms.
Individual runnables took:
+26ms
info: έΨς Starting v2025.4.92142-latest of Lens... +4ms
info: έΨς [BASE-STORE]: saving C:\Users\xxx\AppData\Roaming\Lens\lens-user-store.json... +33ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
...SSbd3ik
fmye23MTZGJppS99ypZtn/gETTCSPW4hFCHJPeDD/YprnUr90aGdmUN3P7Da
-----END CERTIFICATE-----
+9ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
...
CayJSdM=
-----END CERTIFICATE-----
+1ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
M...
BOSoRQTIWjM4bk0cDWK3CqKM09VUP0bNHFWmcNsSOoeTdZ+n0qA=
-----END CERTIFICATE-----
+0ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIBATANBgkqhkiG9w0BAQQFADBQMQswCQYDVQQGEwJVUzEN
..
XMUVZjFswWJxkQ9ZW30qghrfsbTYHTfeDQ8=
-----END CERTIFICATE-----
+0ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
..
a9xkn0ArH0UkBK5JL/bfDJE=
-----END CERTIFICATE-----
+1ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
..
3P+6Z0JIppAQ5L9h+JxT5ZPRcz/4/Z1PhKxV0f0RY2M=
-----END CERTIFICATE-----
+0ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
MIIEZjCCA06gAwIBAgIQRL4Mi1AAJLQR0zYt4LNfGzANBgkqhkiG9w0BAQUFADCB
...
Uh+U3xeUc8OzwcFxBSAAeL0TUh2oPs0AH8g=
-----END CERTIFICATE-----
+1ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
....
SnQ2+Q==
-----END CERTIFICATE-----
+0ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
.
Ob8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
-----END CERTIFICATE-----
+0ms
warn: έΨς [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----
...
mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
-----END CERTIFICATE-----
+2ms
warn: έΨς [LENS-CORE-MAIN]: Excluded a total of 10 certificates +0ms
info: έΨς [LOCAL-STORAGE]: initialized +9ms
info: έΨς ΏθΦΝ Starting LensProxy +28ms
info: έΨς [BASE-STORE]: saving C:\Users\xxx\AppData\Roaming\Lens\lens-cluster-store.json... +9ms
info: έΨς [INTERNAL-PROXY-MAIN]: Proxy server has started at 127.0.0.1:58886 +5ms
info: έΨς ΏθΦΟ Testing LensProxy connection ... +1ms
(node:41680) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 removal-of-state listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `Lens --trace-warnings ...` to show where the warning was created)
(node:41680) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 removal-of-state-with-prefix listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:41680) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 changes-of-state listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
info: έΨς έγκ LensProxy connection OK +36ms
info: έΨς [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "before-application-is-loading-injection-token" took 137.97 ms.
Individual runnables took:
- internal-proxy-main:run-setup-lens-proxy 135.87 ms
- cluster-common:storage-initialization 97.18 ms
- lens-core-main:setup-cluster-state-broadcasting 97.13 ms
- local-storage-feature:run-initialization-of-local-storage 58.06 ms
- lens-core-main:setup-system-ca 47.37 ms
- user-preferences:storage-initialization 37.1 ms
- messaging:start-listening-of-channels 1.05 ms
- lens-core-main:log-version-on-start 0.23 ms +0ms
info: έΨς ΏθΥθ Setting protocol client for lens:// +5ms
info: έΨς ΏθΥθ Protocol client register succeeded έεΖ +0ms
info: έΨς [BASE-STORE]: saving C:\Users\xxx\AppData\Roaming\Lens\lens-filesystem-provisioner-store.json... +2ms
info: έΨς ΏθΡγ Syncing shell environment +2ms
info: έΨς [CREATE-ELECTRON-WINDOW]: Loading content for window "splash" from file: C:\Program Files\Lens\resources\app.asar\static\splash.html... +28ms
info: έΨς [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "after-window-is-opened" took 26.78 ms.
Individual runnables took:
- lens-core-main:show-dock-for-first-opened-window 0.05 ms +24ms
info: έΨς Ώθπσ Initializing extensions +1ms
info: έΨς [EXTENSIONS-LOADER]: auto initializing extensions +0ms
info: έΨς [LENS-DESKTOP-KUBE] onActivate +418ms
info: έΨς [BASE-STORE]: saving C:\Users\xxx\AppData\Roaming\Lens\extension-store\lens-desktop-kube-lens-extension\ldk-store.json... +2ms
info: έΨς [BASE-STORE]: saving C:\Users\xxx\AppData\Roaming\Lens\extension-store\oci-image-lens-extension\security-preferences-store.json... +16ms
info: έΨς [LENS-SECURITY] activated +11ms
[ELECTRON-SYNC-STORE]: 2025-04-15T16:00:39.640Z - select-space-store ~ ElectronSyncStore:initialize, path C:\Users\xxx\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\select-space-store.json
[ELECTRON-SYNC-STORE]: 2025-04-15T16:00:39.641Z - select-space-store ~ ElectronSyncStore:initialize, model {"aa123-6d23-481c-b56e-f7112342a":{"spaceId":"offline","isPersonalSpace":true,"spaceName":"offline"}}
[ELECTRON-SYNC-STORE]: 2025-04-15T16:00:39.641Z - select-space-store ~ ipcListen
[ELECTRON-SYNC-STORE]: 2025-04-15T16:00:39.641Z - startup-store ~ ElectronSyncStore:initialize, path C:\Users\xxx\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\startup-store.json
[ELECTRON-SYNC-STORE]: 2025-04-15T16:00:39.641Z - startup-store ~ ElectronSyncStore:initialize, model {"skipSignup":false}
[ELECTRON-SYNC-STORE]: 2025-04-15T16:00:39.641Z - startup-store ~ ipcListen
info: έΨς [BASE-STORE]: saving C:\Users\xxx\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\end-of-trial-store.json... +13ms
info: έΨς [LENS-SPACES-EXTENSION]: 15/04/2025, 19:00:39 Lens Spaces Extension activated +11ms
info: έΨς [LENS-SPACES-EXTENSION]: 15/04/2025, 19:00:39 [LENS-SPACES-EXTENSION] Registering cli +0ms
info: έΨς [CLI] Registered command undefined teamwork +13ms
info: έΨς [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "after-window-is-opened" took 4.12 ms.
Individual runnables took:
- lens-core-main:show-dock-for-first-opened-window 0.01 ms +1ms
info: έΨς [CLI] Registered command teamwork get-exec-credential <spaceName> <clusterId> +0ms
info: έΨς [CLI] Registered command undefined clusters +0ms
info: έΨς [CREATE-ELECTRON-WINDOW]: Window "splash" loaded +64ms
info: έΨς [LENS-SPACES-EXTENSION]: 15/04/2025, 19:00:40 isLensCloudStatusOk on initialization returns true +290ms
error: έΦΠ [LENS-SPACES-EXTENSION]: (from:onRefreshTokenError) 15/04/2025, 19:00:40 Unknown error Offline user session not found +73ms
error: έΦΔ [1] Error: Offline user session not found
error: έΦΔ [2] at C:\Program Files\Lens\resources\app.asar\node_modules\@lensapp\lenscloud-lens-extension\dist\main.js:2:1571218
error: έΦΔ [3] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error: έΦΩ [4] at async k.refresh (C:\Program Files\Lens\resources\app.asar\node_modules\@lensapp\lenscloud-lens-extension\dist\main.js:2:1570602)
error: έΨς [LENS-SPACES-EXTENSION]: 15/04/2025, 19:00:40 Error: Offline user session not found +1ms
warn: έΨς [LENS-SPACES-EXTENSION]: 15/04/2025, 19:00:40 Couldn't refresh tokens, starting token refresher later. +0ms
warn: έΨς [LENS-DESKTOP-KUBE] not a valid lens subscription, stopping ... +1s
info: έΨς [LENS-DESKTOP-KUBE] Registering CLI commands +27ms
info: έΨς [CLI] Registered command undefined desktop-kube +2ms
info: έΨς [CLI] Registered command desktop-kube ls +0ms
Kubeconfig: Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
your kubeconfig here
Additional context The app works fine, this message does not appear to create any issues.
[LENS-DESKTOP-KUBE] not a valid lens subscription, stopping ... +1s Note that I have a free personal license,
Dear @hakakou
Thank you for reaching out to Lens Support!
Thanks for reporting a bug. We are working on your issue. Stand by for further updates.
Regards, Oleksandr from Lens