agross / immich-duplicates

Find image and video duplicates in Immich.
129 stars 5 forks source link

Images don't load (404) when used with Immich v1.98.1 #16

Closed datatags closed 5 months ago

datatags commented 6 months ago

When starting the duplicate browser, after entering the setup values and pressing OK, no images load. The browser network console shows many 404 errors, maybe caused by the removal of the "asset/assetById/{id}" endpoint? Immich 1.94.0 release notes mention that it would be removed in a future release, which seems to have happened.

agross commented 6 months ago

Yes, this is related to that breaking change in the Immich API.

agross commented 6 months ago

I don't know how to solve this ATM. The SDK package is months old and does not include the new/replacement API: https://www.npmjs.com/package/immich-sdk

jrasm91 commented 6 months ago

Yes, we can work on updating the package.

werkkrew commented 5 months ago

So does this mean this tool is currently broken? Just want to know if I should bother installing it or wait for a fix because my Immic server is 1.98.x

agross commented 5 months ago

Yes, technically it's currently broken because of a mismatch between the immich-sdk package and what Immich 1.98 supports.

I was able to find a workaround that you may test. It only works

Please docker image pull ghcr.io/agross/immich-duplicates-browser before testing.

If you see errors like [error] 36#36: recv() failed (111: Connection refused) while resolving, resolver: 127.0.0.11:53 then you need to add --env NGINX_RESOLVER=<IP of your DNS server> to the docker container run invocation.

Please report back.

ckocyigit commented 5 months ago

The immich-sdk-typescript-axios is deprecated and they have switched to openapi generation for the sdks.

I think you should switch to https://github.com/immich-app/immich/tree/main/open-api/typescript-sdk

I could look into switching the libs if I can find some time.

agross commented 5 months ago

@ckocyigit Ah, thank you, I wasn't aware "immich-sdk" is deprecated and "@immick/sdk" is the replacement. I've replaced the lib in 653255e. For me it solves the issue with images not loading.

@datatags @werkkrew Please test the updated docker image: docker image pull ghcr.io/agross/immich-duplicates-browser

datatags commented 5 months ago

Looks like that fixed it, thank you!!