akash-network / akash-network/console
Console-web stops receiving logs via websocket
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 264
- Forks
- 94
- Avg merge
- 18h 49m
- Merged PRs (30d)
- 297
Description
Why
bug
Steps to reproduce
- Open https://console-api-sandbox.akash.network/ deployment in https://console.akash.network/
- Open logs
- Wait 3-5 minutes, ensure that logs are not generated by somebody else, so websocket remains silent for some time
- Send request to https://console-api-sandbox.akash.network/status via curl or just open in new browser tab to generate log entry
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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