Motion Photos: Error wile adding and removing from favourites

Hi all, when I add or remove a potion photo from the favourites I see the "Internal server error" error. In the app I don't see an error but the heart is just visible after syncing again, not like it is for normal picture.
No description
5 Replies
tromorow
tromorowOP2y ago
The web browser shell is throwing the following errors:
[handleError]: Unable to remove asset from favorites
Object { message: "Request failed with status code 500", name: "AxiosError", code: "ERR_BAD_RESPONSE", config: {…}, request: XMLHttpRequest, response: {…}, stack: "" }
code: "ERR_BAD_RESPONSE"
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
message: "Request failed with status code 500"
name: "AxiosError"
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
response: Object { data: {…}, status: 500, statusText: "Internal Server Error", … }
stack: ""
<prototype>: Object { constructor: se(t, e, a, s, r), toJSON: toJSON(), stack: "", … }
[handleError]: Unable to remove asset from favorites
Object { message: "Request failed with status code 500", name: "AxiosError", code: "ERR_BAD_RESPONSE", config: {…}, request: XMLHttpRequest, response: {…}, stack: "" }
code: "ERR_BAD_RESPONSE"
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
message: "Request failed with status code 500"
name: "AxiosError"
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
response: Object { data: {…}, status: 500, statusText: "Internal Server Error", … }
stack: ""
<prototype>: Object { constructor: se(t, e, a, s, r), toJSON: toJSON(), stack: "", … }
seems like the server is responding with an error 500:
500
Internal Server Error
VersionHTTP/1.1
Transferred296 B (52 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionSystem


Connection
keep-alive
Content-Length
52
Content-Type
application/json; charset=utf-8
Date
Wed, 06 Sep 2023 12:10:19 GMT
ETag
"34-rlKccw1E+/fV8niQk4oFitDfPro"
Server
nginx
X-Powered-By
Express

Accept
application/json, text/plain, */*
Accept-Encoding
gzip, deflate, br
Accept-Language
en-US,en;q=0.5
Connection
keep-alive
Content-Length
19
Content-Type
application/json
Cookie
immich_access_token=YEjTGSJOz3J9aJrfG8dNb2cCVbiV8Q6qjDfRGtVjg; immich_auth_type=oauth
DNT
1
Host
XXX
Origin
XXX
Referer
XXX
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
same-origin
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
500
Internal Server Error
VersionHTTP/1.1
Transferred296 B (52 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionSystem


Connection
keep-alive
Content-Length
52
Content-Type
application/json; charset=utf-8
Date
Wed, 06 Sep 2023 12:10:19 GMT
ETag
"34-rlKccw1E+/fV8niQk4oFitDfPro"
Server
nginx
X-Powered-By
Express

Accept
application/json, text/plain, */*
Accept-Encoding
gzip, deflate, br
Accept-Language
en-US,en;q=0.5
Connection
keep-alive
Content-Length
19
Content-Type
application/json
Cookie
immich_access_token=YEjTGSJOz3J9aJrfG8dNb2cCVbiV8Q6qjDfRGtVjg; immich_auth_type=oauth
DNT
1
Host
XXX
Origin
XXX
Referer
XXX
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
same-origin
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
I see the following error in the server log:
[Nest] 7 - 09/06/2023, 11:47:04 AM ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'id')
TypeError: Cannot read properties of undefined (reading 'id')
at mapPerson (/usr/src/app/dist/domain/person/person.dto.js:119:20)
at mapFace (/usr/src/app/dist/domain/person/person.dto.js:128:12)
at Array.map (<anonymous>)
at _map (/usr/src/app/dist/domain/asset/response-dto/asset-response.dto.js:54:77)
at mapAsset (/usr/src/app/dist/domain/asset/response-dto/asset-response.dto.js:59:12)
at AssetService.update (/usr/src/app/dist/domain/asset/asset.service.js:272:44)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17
[Nest] 7 - 09/06/2023, 11:47:04 AM ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'id')
TypeError: Cannot read properties of undefined (reading 'id')
at mapPerson (/usr/src/app/dist/domain/person/person.dto.js:119:20)
at mapFace (/usr/src/app/dist/domain/person/person.dto.js:128:12)
at Array.map (<anonymous>)
at _map (/usr/src/app/dist/domain/asset/response-dto/asset-response.dto.js:54:77)
at mapAsset (/usr/src/app/dist/domain/asset/response-dto/asset-response.dto.js:59:12)
at AssetService.update (/usr/src/app/dist/domain/asset/asset.service.js:272:44)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17
How to solve this? just tired it, and the same happens on videos. Only pictures can be liked as expected. BTW, server version: v1.77.0
jrasm91
jrasm912y ago
I think this is a new bug Can you use the multi select + favorite successfully still? And does this only happen to photos with tagged people?
tromorow
tromorowOP2y ago
No, with multiselect it is working. Even if just one is selected. Indeed it is only happening with elements where people are detected. At first I taught it is because of the motion pictures, but seems to be a face detection issue. 🤔
jrasm91
jrasm912y ago
GitHub
fix(server): update asset with tagged people by jrasm91 · Pull Requ...
Updating an asset was failing because the returned entity had faces, but no people. This led to a TypeError in the mapper. This has been resolved by loading the people relation and verified in the ...
tromorow
tromorowOP2y ago
Great, thx 👍

Did you find this page helpful?