Error loading image in talk app
How to use GitHub
- Please use the ๐ reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Install talk desktop on windows 10
- Log in
- Recive photo from somebody in message
- get error
Expected behaviour
I should see photo, in broweser works ok.
in broweser i see file (but idk why previe doesn't work)
Actual behaviour
"Could not load the file.
Diagnosis and logs
Diagnosis report
### Diagnosis report| Nextcloud Talk Desktop | |
|---|---|
| Version | v1.0.0 |
| Built-in Talk version | v20.1.0 |
| Operating system | Windows_NT 10.0.19045 (Windows 10 Pro) |
| Executable Path | C:\Users\Filip\AppData\Local\NextcloudTalk\app-1.0.0\Nextcloud Talk.exe |
| Connected to | - |
| Nextcloud server version | 30.0.4 |
| Nextcloud Talk version | 20.1.0 |
notifications app enabled |
โ yes |
notify_push app enabled |
โ yes |
Application config
{
"theme": "dark",
"systemTitleBar": true,
"monochromeTrayIcon": false,
"zoomFactor": 1.1999999999999997,
"playSoundChat": "respect-dnd",
"playSoundCall": "respect-dnd",
"enableCallbox": "respect-dnd"
}
It can be found in the About window (open from the menu or via F1 and click on "Copy report" button).
Client logs
Press Ctrl+Shift+I (Cmd+Option+C on macOS) or use the context menu to open the developer tools, then go to the Console tab.
Not connected to signaling server yet, defer joining room m4bnafes
mydomainfonextcloud.net/ocs/v2.php/apps/user_status/api/v1/statuses/_Filip:1
Failed to load resource: the server responded with a status of 404 ()
Thank you for your report.
Is that correct, that you don't have files preview on your instance?
when i send it works, when somebody then not. Sometimes it works some times it doesn't.
My message:
Somebody else:
When you send it, we use blob with local picture to not load it again from server (until restarted) Unless it's an actual desktop issue, same should happen in browser (own upload previews available, others - not)
i get 404 in browser when trying to generate preview
HTTP/1.1 404 server: openresty date: Thu, 19 Dec 2024 08:12:31 GMT content-type: application/json; charset=utf-8 content-length: 2 cache-control: no-cache, no-store, must-revalidate content-security-policy: default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none' feature-policy: autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none' referrer-policy: no-referrer strict-transport-security: max-age=31536000; x-content-type-options: nosniff x-frame-options: SAMEORIGIN x-permitted-cross-domain-policies: none x-request-id: Jm9wbPFpP1T81Ps47yhp x-robots-tag: noindex, nofollow x-xss-protection: 1; mode=block X-Firefox-Spdy: h2
GET /core/preview?fileId=177795&x=-1&y=32&a=1 HTTP/1.1 Host: mydomain User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0 Accept: image/avif,image/webp,image/png,image/svg+xml,image/;q=0.8,/*;q=0.5 Accept-Language: pl,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate, br, zstd DNT: 1 Sec-Fetch-Dest: image Sec-Fetch-Mode: no-cors Sec-Fetch-Site: same-origin Connection: keep-alive
Correct, we get this also. Works in mobile talk but not on desktop talk.
Hi; I have same error, in Windows and Linux Desktop APP, in Android APP and in the Web Browser client direct on Nextcloud interface. Im searching for solution in web and / or awaiting for Nextcloud team for one solution.
Hi again;
For problem in Talk in browser, i have one solution. Edit nextcloud config file "config.php", generally in "/web-server-root-directory/nextcloud/config/config.php" and adding these lines on end file:
array (
'OC\Preview\PNG',
'OC\Preview\JPEG',
'OC\Preview\GIF',
'OC\Preview\BMP',
'OC\Preview\XBitmap',
'OC\Preview\MP3',
'OC\Preview\TXT',
'OC\Preview\MarkDown',
'OC\Preview\OpenDocument',
'OC\Preview\Krita',
'OC\Preview\HEIC',
),
before last ");" in file.
I'm still search for solutions for other platforms (Windows and Linux App and Android APP).
Hi again again;
One update, the solution above resolve all platforms.
This print is the Talk in Linux:
Red is before config, Green is after config.
After edit file, iยดm reload web server (apache2) in my server.
We also had this problem, no pictures in the desktop app but it worked fine in the mobile app and in browser.
Turns out the only problem was the setting 'enable_previews' in config.php. Changed this from false to 'enable_previews' => true, and the pictures started working right away.
I have no idea why this was turned off, it's an older instance that got updated over the years. Maybe there was a time when the default setting was false or someone turned off previews for performance reasons.
Maybe there should be a configuration warning if previews are turned off and Talk is enabled.
We also had this problem, no pictures in the desktop app but it worked fine in the mobile app and in browser.
Turns out the only problem was the setting 'enable_previews' in config.php. Changed this from false to
'enable_previews' => true,and the pictures started working right away. I have no idea why this was turned off, it's an older instance that got updated over the years. Maybe there was a time when the default setting was false or someone turned off previews for performance reasons.Maybe there should be a configuration warning if previews are turned off and Talk is enabled.
Hi @tim-geier ; Could you please tell me in which configuration block you made the change?
Because my "config.php" doesn't even have this option (enable_previews) inserted. Thanks
my "config.php" doesn't even have this option (enable_previews) inserted.
Then it's true by default: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#enable-previews
BTW: The button to CLOSE the preview is shown ONLX on 'mouse-over' so you can fid it only 'by accident'. That's annoying, especialle as you can't exit preview with 'escape' either.