immich icon indicating copy to clipboard operation
immich copied to clipboard

The Android mobile app prompts "Error occurred" when adding or modifying character names.

Open pyccl opened this issue 1 year ago • 4 comments

The bug

When adding or modifying a character's name in a mobile app, an error message "Error occurred" appears. However, in reality, it can be seen in the web page that the modification has been successful (both Chinese and English have been tried with the same error).

image image

The OS that Immich Server is running on

Windows 11 Docker Desktop V4.43.0

Version of Immich Server

V1.114.0

Version of Immich Mobile App

V1.113.1 build.2157

Platform with the issue

  • [X] Server
  • [ ] Web
  • [X] Mobile

Your docker-compose.yml content

-

Your .env content

-

Reproduction steps

...

Relevant log output

No response

Additional information

No response

pyccl avatar Sep 07 '24 04:09 pyccl

v1.114.0 the same error

pyccl avatar Sep 07 '24 09:09 pyccl

I have the same error also. Android app logs.

Message Error while updating person name Details Null check operator used on a null value From PersonService

#0      PersonResponseDto.fromJson (package:openapi/model/person_response_dto.dart:94)
#1      ApiClient.fromJson (package:openapi/api_client.dart:423)
#2      ApiClient.deserialize (package:openapi/api_client.dart:158)
<asynchronous suspension>
#3      PeopleApi.updatePerson (package:openapi/api/people_api.dart:541)
<asynchronous suspension>
#4      PersonService.updateName (package:immich_mobile/services/person.service.dart:72)
<asynchronous suspension>
#5      updatePersonName (package:immich_mobile/providers/search/people.provider.dart:39)
<asynchronous suspension>
#6      FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

KeyboardDabbler avatar Sep 09 '24 08:09 KeyboardDabbler

Same here and yes even if there is this error, the change is applied.

Acidiphilium avatar Sep 09 '24 12:09 Acidiphilium

Could be a server side issue?

I tried to change the name and the server responded with:

{
  "id":"7a3c1d8f-442a-417b-9ec1-00820383c02a",
  "name":"test",
  "birthDate":null,
  "updatedAt":"2024-09-09T17:54:01.430Z"
}

According to the logs, the error happened at line 94 here: https://github.com/immich-app/immich/blob/7b2f98a433351bd8f02e86324c2c3b9ba51730fc/mobile/openapi/lib/model/person_response_dto.dart#L84-L101

My assumption is that the server response was missing two fields (isHidden and thumbnailPath), and the error happened when the client tried to deserialize that.

theoforger avatar Sep 09 '24 18:09 theoforger

Experiencing the same

AlexKalopsia avatar Sep 10 '24 08:09 AlexKalopsia