akash-network / akash-network/console

Console-web stops receiving logs via websocket

Open
#799 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

Why

bug

Steps to reproduce

  1. Open https://console-api-sandbox.akash.network/ deployment in https://console.akash.network/
  2. Open logs
  3. Wait 3-5 minutes, ensure that logs are not generated by somebody else, so websocket remains silent for some time
  4. Send request to https://console-api-sandbox.akash.network/status via curl or just open in new browser tab to generate log entry
  5. Observe the result in logs

Expected result

✅ new log entry shown

Actual result

❌ logs list is not updated

Observations

It seems that websocket connection is closed when it nothing goes through it, I see a successful attempt to reconnect but provider websocket connection on proxy is not established until client sends the 1st message and the code in DeploymentLogs.tsx does not do it. Once it establishes connection once, it then ignores attempts to send a message to websocket -> https://github.com/akash-network/console/blob/main/apps/deploy-web/src/components/deployments/DeploymentLogs.tsx#L120

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 at apps/deploy-web/src/components/deployments/DeploymentLogs.tsx around line 120 and reproduce the idle-connection sequence described in the issue. Inspect the reconnect and websocket message flow, then verify that after several minutes without logs, a newly generated log entry still appears in the logs list.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.