JSON error

オープン
#674 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp, json
領域
api, backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C#
スター
2.4k
フォーク
121
平均マージ
18日 20時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

immichFrame/ImmichFrame のほかの issue

immichFrame/ImmichFrame の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。