JSON error

Aperta
#674 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
csharp, json
Ambito
api, backend

Direzione di ricerca

The error identifies AlbumResponseDto and AlbumUserRole as the relevant API types; no source files or tests are named in the issue. Start by locating those definitions and checking how the album response's albumUsers[0].role value is deserialized. Confirm the expected handling of the string owner against Immich 3.0.1 and verify that shared albums deserialize successfully.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Version

1.0.35.0

Deployment Method

Proxmox LXC

Description

I'm not sure if this is related but I'm using ImmichFrame 1.0.35.0 and Immich 3.0.1, ever since I update to these latest versions I get

ImmichFrame.Core.Api.ApiException: Could not deserialize the response body stream as ImmichFrame.Core.Api.AlbumResponseDto. Status: 200 Response: ---> Newtonsoft.Json.JsonSerializationException: Error converting value "owner" to type 'ImmichFrame.Core.Api.AlbumUserRole'. Path 'albumUsers[0].role', line 1, position 454. ---> System.ArgumentException: Requested value 'owner' was not found.

The album is shared with 1 other person, when I view the Immich API path directly I can see both users, I can see ImmichFrame.Core.Api.AlbumUserRole is defined as an int, did this change with Immich version 3 to strings?

Reproduction

Not sure, I guess make a shared album and have ImmichFrame show that?

Expectations

No response

Configuration

Logs

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

Lingua principale
C#
Stelle
2.4k
Fork
121
Merge medio
18g 20h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di immichFrame/ImmichFrame

Tutte le issue di immichFrame/ImmichFrame

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.