gethomepage / homepage

A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
https://gethomepage.dev/
GNU General Public License v3.0
17.15k stars 989 forks source link

[Bug] Using `ping: https://192.168.0.1` entry crashes homepage #1527

Closed MildlyInterested closed 1 year ago

MildlyInterested commented 1 year ago

Description

Using the ping feature seems to occasionally crash the homepage. I'm using it to ping my printer like so:

    - Printer:
        href: http://192.168.0.7
        icon: hp
        ping: http://192.168.0.7

It does ping succesfully but it keeps reloading the hompage/restarting the container.

Steps to reproduce

  1. Edit services.yaml
  2. Add a service with the ping feature.
  3. Save and navigate to homgepage and reload.
  4. Look at logs.

homepage version

v0.6.20 (6046f79, May 19, 2023)

Installation method

Docker

Configuration

- Hardware:
    - Printer:
        href: http://192.168.0.7
        icon: hp
        ping: http://192.168.0.7

Container Logs

[2023-05-20T12:01:08.108Z] error: TypeError: Cannot read properties of null (reading 'setMaxAge')
    at /app/.next/server/chunks/4851.js:40:14
    at Array.map (<anonymous>)
    at addCookieToJar (/app/.next/server/chunks/4851.js:38:28)
    at IncomingMessage.<anonymous> (/app/.next/server/chunks/4851.js:110:77)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[2023-05-20T12:01:08.110Z] error: TypeError: Cannot read properties of null (reading 'setMaxAge')
    at /app/.next/server/chunks/4851.js:40:14
    at Array.map (<anonymous>)
    at addCookieToJar (/app/.next/server/chunks/4851.js:38:28)
    at IncomingMessage.<anonymous> (/app/.next/server/chunks/4851.js:110:77)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Browser Logs

No response

Troubleshooting

Ping does complete and time is shown on homepage.

Other

I've tried pinging different web services, happens with all of them.

Before submitting, I have made sure to

shamoon commented 1 year ago

I cant reproduce this nor are others reporting it but I suppose it's safe enough to wrap the code with a little more error handling. Unless this crops up more I dont think we will pursue beyond that. Thanks for reporting.

github-actions[bot] commented 5 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.