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

Patch cluster throws wrong exception #171

Open
chenhunghan opened this issue Dec 3, 2021 · 0 comments
Open

Patch cluster throws wrong exception #171

chenhunghan opened this issue Dec 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@chenhunghan
Copy link
Collaborator

chenhunghan commented Dec 3, 2021

Shouldn't throw SpaceNotFoundException if cluster not found.

[0] [LENS-SPACES-EXTENSION]: error update space hchen-2 cluster mydevcluster; phase running; provisioned: false SpaceNotFoundException [Error]: Couldn't find space "hchen-2"
[0]     at new NotFoundException (webpack:///./node_modules/lens-platform-sdk/dist/cjs/exceptions/common.exceptions.js?:20:9)
[0]     at new SpaceNotFoundException (webpack:///./node_modules/lens-platform-sdk/dist/cjs/exceptions/space.exceptions.js?:7:9)
[0]     at 404 (webpack:///./node_modules/lens-platform-sdk/dist/cjs/SpaceService.js?:230:45)
[0]     at throwExpected (webpack:///./node_modules/lens-platform-sdk/dist/cjs/exceptions/utils.js?:69:19)
[0]     at runMicrotasks (<anonymous>)
[0]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[0]     at async SpaceService.updateOneCluster (webpack:///./node_modules/lens-platform-sdk/dist/cjs/SpaceService.js?:228:22)
[0]     at async updateDevCluster (webpack:///./src/helper/devCluster/updateDevCluster.ts?:10:5)
[0]     at async CatalogSyncer.value [as updateSpaceClusterPhase] (webpack:///./src/CatalogSyncer.ts?:179:21)
[0]     at async Object.modified (webpack:///./src/CatalogSyncer.ts?:677:25) {
[0]   errorCode: 404,
[0]   rawException: undefined
[0] }
@chenhunghan chenhunghan added the bug Something isn't working label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant