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

[bug] network tab unavailable #87

Closed
bingoct opened this issue Jun 18, 2024 · 4 comments
Closed

[bug] network tab unavailable #87

bingoct opened this issue Jun 18, 2024 · 4 comments
Labels

Comments

@bingoct
Copy link

bingoct commented Jun 18, 2024

saw the image problem in this #85. So i try the dev release.

compose.yaml

version: "3.9"
services:
  dweebui:
    container_name: dweebui
    image: docker.io/lllllllillllllillll/dweebui:v0.70-dev
    networks:
      - traefik
    environment:
      PORT: ${port}
      SECRET: ${secret}
      HTTPS: false
    volumes:
      - type: bind
        source: ${dockerPath}
        target: /var/run/docker.sock
      - type: volume
        source: dweebui
        target: /app/config
    labels:
      # using traefik to expose service
      # enable traefik
      - traefik.enable=true
networks:
  traefik:
    driver: bridge
    external: true
volumes:
  dweebui:
    external: true
    name: dweebui

Logs

DB Connection: ✔️
Synced Models: ✔️
Listening on http://localhost:8000
file:///app/controllers/networks.js:11
let network_name = containers[i].HostConfig.NetworkMode;
^

TypeError: Cannot read properties of undefined (reading 'NetworkMode')
at Networks (file:///app/controllers/networks.js:11:53)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v22.3.0
DB Connection: ✔️
Synced Models: ✔️
Listening on http://localhost:8000
file:///app/controllers/networks.js:11
let network_name = containers[i].HostConfig.NetworkMode;
^

TypeError: Cannot read properties of undefined (reading 'NetworkMode')
at Networks (file:///app/controllers/networks.js:11:53)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v22.3.0

@bingoct
Copy link
Author

bingoct commented Jun 18, 2024

suggest: catch error instead of exist.

The experience is terrible when clicking somewhere to trigger bugs, then the whole app is restart.

@bingoct bingoct changed the title network tab unavailable [bug] network tab unavailable Jun 18, 2024
@lllllllillllllillll
Copy link
Owner

Yeah, it looks like the same issue. I need to add a try block.

lllllllillllllillll added a commit that referenced this issue Jun 19, 2024
@lllllllillllllillll
Copy link
Owner

Should be fixed in v0.70-dev now.

Commit: fc963b6

@lllllllillllllillll
Copy link
Owner

The experience is terrible when clicking somewhere to trigger bugs, then the whole app is restart.

I've added pm2 to the image to prevent the app crashing on error: 6c15c28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants