Front end stops at error

Open
#547 44 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp, javascript
Domain
frontend

Research direction

The payload names no files. Start by searching the codebase for the offline error text "Looks like your immich-server is offline" to find the error state, then look at how the service worker handles failed fetches. The logs show requests stop after the first error and never resume. Done means the app retries on an interval and resumes showing images without a page reload, which needs reproducing with a long-running session.

Written by the indexing model from the issue text.

Description

bug
Version

v1.0.30.0

Deployment Method

Docker compose on Ubuntu server as advised in docs

Description

After showing a couple of photos, sometimes more, sometimes less, the error screen displays "Looks like your immich-server is offline or you misconfigured immichFrame, check the container logs"

Reproduction

Open ImmichFrame in Firefox and let it run for max 2 hours.

Expectations

I expect that the app will retry on a regular intervaland start showing images again. Looking at the container logs, the serviceworker doesn't do any fetches after it ran into an error. It never recovers. Only when the page is reloaded, the app starts working again.

Configuration
General:
  PhotoDateFormat: 'dd-mm-yyyy'  # string
  ImageLocationFormat: 'City,Country'
  Language: 'nl'
  ShowClock: false
  ShowProgressBar: false
  ShowPhotoDate: false
  ShowImageDesc: false
  ShowPeopleDesc: false
  ShowAlbumName: false
  ShowImageLocation: false
  ImageZoom: false
  PrimaryColor: '#f5deb300'

Accounts:
  -
    ImmichServerUrl: 'http://192.168.1.XX'
    ApiKey: "XXXXXXXX"
    Albums:
      - "XXXXXXXXXX"
Logs
26-01-05 08:14:57 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[100] Start processing HTTP request GET http://192.168.1.41/api/assets/7e4ffce7-4f5b-43ba-ad7a-dcd1afe5b18e/thumbnail?key=&size=preview
26-01-05 08:14:57 info: System.Net.Http.HttpClient.ImmichApiAccountClient.ClientHandler[100] Sending HTTP request GET http://192.168.1.41/api/assets/7e4ffce7-4f5b-43ba-ad7a-dcd1afe5b18e/thumbnail?key=&size=preview
26-01-05 08:14:58 info: System.Net.Http.HttpClient.ImmichApiAccountClient.ClientHandler[101] Received HTTP response headers after 31.1473ms - 200
26-01-05 08:14:58 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[101] End processing HTTP request after 31.2413ms - 200
26-01-05 08:15:43 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[100] Start processing HTTP request GET http://192.168.1.41/api/assets/fbe25feb-f127-463f-bf6a-76a6eedd691f/thumbnail?key=&size=preview
26-01-05 08:15:43 info: System.Net.Http.HttpClient.ImmichApiAccountClient.ClientHandler[100] Sending HTTP request GET http://192.168.1.41/api/assets/fbe25feb-f127-463f-bf6a-76a6eedd691f/thumbnail?key=&size=preview
26-01-05 08:15:43 info: System.Net.Http.HttpClient.ImmichApiAccountClient.ClientHandler[101] Received HTTP response headers after 32.747ms - 200
26-01-05 08:15:43 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[101] End processing HTTP request after 32.8457ms - 200
26-01-05 17:39:30 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[100] Start processing HTTP request GET http://192.168.1.41/api/assets/e4ab9540-81b3-4a1e-8bcd-5a7d9e0256fd/thumbnail?key=&size=preview
26-01-05 17:39:30 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[100] Start processing HTTP request GET http://192.168.1.41/api/assets/ae5071fd-7447-4d3b-a65a-e5ddb079ecda/thumbnail?key=&size=preview
26-01-05 17:39:30 info: System.Net.Http.HttpClient.ImmichApiAccountClient.ClientHandler[100] Sending HTTP request GET http://192.168.1.41/api/assets/ae5071fd-7447-4d3b-a65a-e5ddb079ecda/thumbnail?key=&size=preview
26-01-05 17:39:30 info: System.Net.Http.HttpClient.ImmichApiAccountClient.ClientHandler[100] Sending HTTP request GET http://192.168.1.41/api/assets/e4ab9540-81b3-4a1e-8bcd-5a7d9e0256fd/thumbnail?key=&size=preview
26-01-05 17:39:30 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[100] Start processing HTTP request GET http://192.168.1.41/api/assets/ae2607a5-7e9b-48b5-822f-36461f0ccd7c/thumbnail?key=&size=preview
26-01-05 17:39:30 info: System.Net.Http.HttpClient.ImmichApiAccountClient.LogicalHandler[100] Start processing HTTP request GET http://192.168.1.41/api/assets/5da048ba-0ae7-4b49-a024-7cda66106daf/thumbnail?key=&size=preview
Pre-Submission Checklist
  • This is a bug report and not a feature request

  • I have provided all of the required information to reproduce the bug (config, logs, etc.)

  • I have checked for related issues and checked the documentation

Dominant language
C#
Stars
2.4k
Forks
121
Avg merge
18d 20h
Merged PRs (30d)
1

Getting set up

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.

More from immichFrame/ImmichFrame

All issues in immichFrame/ImmichFrame

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.