akash-network / akash-network/console

Lease list Request failed with status code 409 (code: ERR_BAD_REQUEST)

Open
#1,840 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
264
Forks
94
Avg merge
18h 49m
Merged PRs (30d)
297

Description

AxiosError: Request failed with status code 409 (code: ERR_BAD_REQUEST)
at settle (webpack://akashnetwork/node_modules/axios/dist/node/axios.cjs:2031:1)
at IncomingMessage.handleStreamEnd (webpack://akashnetwork/node_modules/axios/dist/node/axios.cjs:3148:1)
at (/app/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/context-async-hooks/src/AbstractAsyncHooksContextManager.ts:75:49)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:80:14)
at AsyncLocalStorageContextManager.with (/app/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/context-async-hooks/src/AsyncLocalStorageContextManager.ts:40:36)
at IncomingMessage.contextWrapper (/app/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/context-async-hooks/src/AbstractAsyncHooksContextManager.ts:75:26)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
at LeaseHttpService.request (webpack://akashnetwork/node_modules/axios/dist/node/axios.cjs:4258:1)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async LeaseHttpService.list (webpack://akashnetwork/packages/http-sdk/src/lease/lease-http.service.ts:64:7)
at async Promise.all (index 0)
at async DeploymentReaderService.getDeploymentByOwnerAndDseq (webpack://akashnetwork/console-api/src/deployment/services/deployment-reader/deployment-reader.service.ts:220:57)
at async DeploymentController.getByOwnerAndDseq (webpack://akashnetwork/console-api/src/deployment/controllers/deployment/deployment.controller.ts:128:24)
at async routeGetDeploymentByOwnerAndDseq (webpack://akashnetwork/console-api/src/deployment/routes/deployments/deployments.router.ts:272:22)
at async dispatch (webpack://akashnetwork/node_modules/hono/dist/cjs/compose.js:52:1)
at async (webpack://akashnetwork/node_modules/hono/dist/cjs/validator/validator.js:103:1)
at async dispatch (webpack://akashnetwork/node_modules/hono/dist/cjs/compose.js:52:1)

Response:

Request: GET /akash/market/v1beta4/leases/list

Status: 409

Error: Not specified (code: Not specified)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing GET /akash/market/v1beta4/leases/list and trace the failure through packages/http-sdk/src/lease/lease-http.service.ts, console-api/src/deployment/services/deployment-reader/deployment-reader.service.ts, and the deployment controller and router entries shown in the stack trace. Determine why the request returns 409 and verify that the lease list and related deployment lookup no longer fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.