Issues with shared assets in messenger's browser

Hey. Today i took some photos with my friends and wanted to share it for them. It shared just fine and enabled the option to download by public user. However one of my friends wanted to download it by just clicking the link in our Meta's messenger group so Immich would open in messenger's built-in browser. When he clicked the download button and it actually completed the packing of the assets, it wrote "The page could not be loaded" error toast at the bottom of the screen. Note that the toast was displayed by messenger itself. I also got the error message in Immich server container:
[Nest] 6 - 11/17/2023, 12:24:56 AM ERROR [CommunicationRepository] Websocket connection error: UnauthorizedException: Authentication required
UnauthorizedException: Authentication required
at AuthService.validate (/usr/src/app/dist/domain/auth/auth.service.js:113:15)
at CommunicationRepository.handleConnection (/usr/src/app/dist/infra/repositories/communication.repository.js:30:49)
at Object.next (/usr/src/app/node_modules/@nestjs/websockets/web-sockets-controller.js:77:47)
at ConsumerObserver.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:113:33)
at Subscriber._next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:26)
at Subscriber.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /usr/src/app/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js:18:28
at OperatorSubscriber._this._next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at /usr/src/app/node_modules/rxjs/dist/cjs/internal/Subject.js:69:34
[Nest] 6 - 11/17/2023, 12:24:56 AM ERROR [CommunicationRepository] Websocket connection error: UnauthorizedException: Authentication required
UnauthorizedException: Authentication required
at AuthService.validate (/usr/src/app/dist/domain/auth/auth.service.js:113:15)
at CommunicationRepository.handleConnection (/usr/src/app/dist/infra/repositories/communication.repository.js:30:49)
at Object.next (/usr/src/app/node_modules/@nestjs/websockets/web-sockets-controller.js:77:47)
at ConsumerObserver.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:113:33)
at Subscriber._next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:26)
at Subscriber.next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /usr/src/app/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js:18:28
at OperatorSubscriber._this._next (/usr/src/app/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at /usr/src/app/node_modules/rxjs/dist/cjs/internal/Subject.js:69:34
It was displayed as soon as i opened the link in my phone from that messenger group.
No description
8 Replies
Alex Tran
Alex Tran2y ago
Hm I think this is a bug as we haven't made it to work with downloading from the mobile browser as zip file but did he able to download the file though?
Mr.Green Cake
Mr.Green CakeOP2y ago
No. I tried the same and went through the exactly same error. Of course, nothing downloaded. That's probably because of redirecting to direct download link that messenger can't process Should i make a bug report on github? @Alex
Alex Tran
Alex Tran2y ago
If you download from the browser that is not embedded from another app. Like Chrome, does it work?
Mr.Green Cake
Mr.Green CakeOP2y ago
It downloaded just fine on chrome so it's the issue with embeded browsers most probably
Alex Tran
Alex Tran2y ago
I don't think we have control over this
Mr.Green Cake
Mr.Green CakeOP2y ago
alright. Could it eventuelly be done one day or it's only up to that embeded browser?
Alex Tran
Alex Tran2y ago
sounds like up to that embedded browser's engine
Mr.Green Cake
Mr.Green CakeOP2y ago
Alright, thank you, may i close this thread?

Did you find this page helpful?