immich-go
immich-go copied to clipboard
duplicate function lists duplicate but fails to delete them => Can't delete asset: DeleteAsset, DELETE 400 Bad Request
After moving more and more stuff to Immich I wanted to use the duplicate function of immich-go since i used that tool to upload a lot of photos.
When I try it i get results but whenever i select yes i get an error
For example it looks like that:
immich-go -server http://192.168.178.186:2283 -key ####################### duplicate
There are 2 copies of the asset 222.JPG.JPG, taken on 1970-04-16T22:22:45+01:00 delete 222.JPG 2048x1536, 370.8 KB, upload/library/692a9ac8-b728-4c8a-897d-6c84c94c2053/1970/1970-04-16/222.JPG keep 222.JPG 2048x1536, 370.8 KB, upload/library/f129e4df-22fb-4000-b3ce-3f8fe2412698/1970/1970-04-16/222.JPG Proceed? [n]/y: y Can't delete asset: DeleteAsset, DELETE, http://192.168.178.186:2283/api/asset, 400 Bad Request Bad Request
Since i am doing that locally without the reverse proxy i was able to sniff the traffic ....the actual HTTP traffic looks like that
DELETE /api/asset HTTP/1.1 Host: 192.168.178.186:2283 User-Agent: Go-http-client/1.1 Transfer-Encoding: chunked Accept: application/json Content-Type: application/json X-Api-Key: ######################################### Accept-Encoding: gzip
{"force":false,"ids":["###################"]} HTTP/1.1 400 Bad Request X-Powered-By: Express x-immich-cid: pxu7smfs Content-Type: application/json; charset=utf-8 Content-Length: 88 ETag: "#######################" Date: Sat, 20 Apr 2024 14:17:51 GMT Connection: keep-alive Keep-Alive: timeout=5
{"message":"Not found or no asset.delete access","error":"Bad Request","statusCode":400}GET /api/album?assetId=############################### HTTP/1.1 Host: 192.168.178.186:2283 User-Agent: Go-http-client/1.1 Accept: application/json X-Api-Key: ###################################### Accept-Encoding: gzip
using the search function and the filename and date I found the 2 duplicates ....they really exist