talk-desktop icon indicating copy to clipboard operation
talk-desktop copied to clipboard

Error loading image in talk app

Open filipdot opened this issue 1 year ago โ€ข 12 comments

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

  1. Install talk desktop on windows 10
  2. Log in
  3. Recive photo from somebody in message
  4. get error

Expected behaviour

I should see photo, in broweser works ok. in broweser i see file (but idk why previe doesn't work) Image Image

Actual behaviour

"Could not load the file. Image

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 ()

filipdot avatar Dec 18 '24 09:12 filipdot

Thank you for your report.

Is that correct, that you don't have files preview on your instance?

ShGKme avatar Dec 18 '24 17:12 ShGKme

when i send it works, when somebody then not. Sometimes it works some times it doesn't. My message: Image Somebody else: Image

filipdot avatar Dec 19 '24 07:12 filipdot

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)

Antreesy avatar Dec 19 '24 08:12 Antreesy

i get 404 in browser when trying to generate preview Image

GET | https://mydomain/core/preview?fileId=177795&x=-1&y=32&a=1 -- | --

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

filipdot avatar Dec 19 '24 08:12 filipdot

Correct, we get this also. Works in mobile talk but not on desktop talk.

alexhjelmnf avatar Dec 27 '24 11:12 alexhjelmnf

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.

frmoronari avatar Jan 10 '25 12:01 frmoronari

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).

frmoronari avatar Jan 10 '25 12:01 frmoronari

Hi again again;

One update, the solution above resolve all platforms.

This print is the Talk in Linux:

Image

Red is before config, Green is after config.

After edit file, iยดm reload web server (apache2) in my server.

frmoronari avatar Jan 10 '25 13:01 frmoronari

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.

tim-geier avatar Jul 31 '25 11:07 tim-geier

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

frmoronari avatar Jul 31 '25 12:07 frmoronari

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

Antreesy avatar Jul 31 '25 12:07 Antreesy

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.

Image

ThHirsch avatar Oct 22 '25 12:10 ThHirsch