Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immich Mobile Apps: Error while getting remote assets #1563

Closed
StMDru opened this issue Feb 7, 2025 · 3 comments
Closed

Immich Mobile Apps: Error while getting remote assets #1563

StMDru opened this issue Feb 7, 2025 · 3 comments
Assignees

Comments

@StMDru
Copy link

StMDru commented Feb 7, 2025

I have an immich v1.125.7 server installed on truenas, and an external library of about 60k photos is connected to it. Everything works correctly in the browser, but not in the Android mobile app. The mobile application uploads photos to the server. They are visible both through the web version and through the application. But I can't see my external library in the application, although earlier (before the server update, in 2024) I saw her.

I updated the app on Google Play to the latest version 1.125.5 build.181, but it didn't help.

There is an item in the application log: Error while getting remote assets
Inside is this:

#0      AssetResponseDto.fromJson (package:openapi/model/asset_response_dto.dart:292)
#1      ApiClient.fromJson (package:openapi/api_client.dart:260)
#2      ApiClient.fromJson.<anonymous closure> (package:openapi/api_client.dart:653)
#3      MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#4      ListIterator.moveNext (dart:_internal/iterable.dart:354)
#5      new _List._ofEfficientLengthIterable (dart:core-patch/array.dart:163)
#6      new _List.of (dart:core-patch/array.dart:128)
#7      new List.of (dart:core-patch/array_patch.dart:39)
#8      ListIterable.toList (dart:_internal/iterable.dart:224)
#9      ApiClient.fromJson (package:openapi/api_client.dart:654)
#10     ApiClient.deserialize (package:openapi/api_client.dart:158)
<asynchronous suspension>
#11     SyncApi.getFullSyncForUser (package:openapi/api/sync_api.dart:108)
<asynchronous suspension>
#12     AssetService._getRemoteAssets (package:immich_mobile/services/asset.service.dart:145)
<asynchronous suspension>
#13     SyncService._syncRemoteAssetsForUser (package:immich_mobile/services/sync.service.dart:267)
<asynchronous suspension>
#14     SyncService._syncRemoteAssetsFull (package:immich_mobile/services/sync.service.dart:257)
<asynchronous suspension>
#15     SyncService.syncRemoteAssetsToDb.<anonymous closure> (package:immich_mobile/services/sync.service.dart:92)
<asynchronous suspension>
#16     AssetService.refreshRemoteAssets (package:immich_mobile/services/asset.service.dart:85)
<asynchronous suspension>
#17     AssetNotifier.getAllAsset (package:immich_mobile/providers/asset.provider.dart:55)
<asynchronous suspension>
#18     AppLifeCycleNotifier.handleAppResume (package:immich_mobile/providers/app_life_cycle.provider.dart:67)
<asynchronous suspension>

On server-side logs:

2025-02-07 10:06:27.934027+00:00 [95m[Nest] 16  - [39m02/07/2025, 1:06:27 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~avawuqx8][39m [95mGET /api/users 200 14.51ms 172.71.184.146[39m
2025-02-07 10:06:27.975453+00:00 [95m[Nest] 16  - [39m02/07/2025, 1:06:27 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~u15b6ycs][39m [95mGET /api/partners?direction=shared-by 200 2.44ms 172.71.184.146[39m
2025-02-07 10:06:28.013678+00:00[95m[Nest] 16  - [39m02/07/2025, 1:06:28 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~th5z1biq][39m [95mGET /api/partners?direction=shared-with 200 2.36ms 172.71.184.146[39m
2025-02-07 10:06:28.066872+00:00[95m[Nest] 16  - [39m02/07/2025, 1:06:28 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~i12zp8qp][39m [95mGET /api/users 200 11.78ms 172.71.184.146[39m
2025-02-07 10:06:28.109061+00:00[95m[Nest] 16  - [39m02/07/2025, 1:06:28 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~90prk0r6][39m [95mGET /api/partners?direction=shared-by 200 2.71ms 172.71.184.146[39m
2025-02-07 10:06:28.149845+00:00[95m[Nest] 16  - [39m02/07/2025, 1:06:28 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~k1n7mwha][39m [95mGET /api/partners?direction=shared-with 200 2.84ms 172.71.184.146[39m
2025-02-07 10:06:29.158101+00:00[95m[Nest] 16  - [39m02/07/2025, 1:06:29 PM [95m  DEBUG[39m [33m[Api:LoggingInterceptor~334o00ei][39m [95mPOST /api/sync/full-sync 200 968.05ms 172.71.184.146[39m



@stavros-k
Copy link
Contributor

I can't say anything about the app logs, but on the server either the request never reaches, or the request is served successfully.
Server logs does not have any errors.
I'd say try opening some discussion on the immich channels.

@StMDru
Copy link
Author

StMDru commented Feb 9, 2025

I'll try to record more detailed server logs.

@StMDru
Copy link
Author

StMDru commented Feb 13, 2025

Update 1.126.1 has been released, I have updated the server and the application, and the problem has been resolved.

@StMDru StMDru closed this as completed Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants