#228 [Experimental] Fail to retrieve remote images on first load

Closed
opened 3 years ago by aab · 2 comments
aab commented 3 years ago

With the load of, for instance, /main/public, remote images are not shown; instead, there's a link to the image from local server, and another link from the remote one. Both clicking on the local link and reloading the browser tab show the actual image.

These messages found on debug log may offer a clue:

2021-04-04 11:10:16 LOG_DEBUG: [khp.ignorelist.com:60327.ecbe1e56 GET /main/public] Unknown enclosure mimetype, not enough metadata

2021-04-04 11:10:16 LOG_DEBUG: [khp.ignorelist.com:60327.ecbe1e56 GET /main/public] Unknown enclosure mimetype, not enough metadata

Also, this seems to be the whole process:

2021-04-04 11:25:15 LOG_INFO: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] HTTPClient: HTTP HEAD https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg - 200 OK

2021-04-04 11:25:15 LOG_DEBUG: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] Downloading remote image for file id==1103210 with URL: https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg

2021-04-04 11:25:16 LOG_INFO: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] HTTPClient: HTTP GET https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg - 200 OK

2021-04-04 11:25:16 LOG_INFO: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] Couldn't determine filename for url: https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg

2021-04-04 11:25:16 LOG_DEBUG: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] Requested local URL for a file that is not stored locally with id==1103210

With the load of, for instance, /main/public, remote images are not shown; instead, there's a link to the image from local server, and another link from the remote one. Both clicking on the local link and reloading the browser tab show the actual image. These messages found on debug log may offer a clue: 2021-04-04 11:10:16 LOG_DEBUG: [khp.ignorelist.com:60327.ecbe1e56 GET /main/public] Unknown enclosure mimetype, not enough metadata 2021-04-04 11:10:16 LOG_DEBUG: [khp.ignorelist.com:60327.ecbe1e56 GET /main/public] Unknown enclosure mimetype, not enough metadata Also, this seems to be the whole process: 2021-04-04 11:25:15 LOG_INFO: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] HTTPClient: HTTP HEAD https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg - 200 OK 2021-04-04 11:25:15 LOG_DEBUG: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] Downloading remote image for file id==1103210 with URL: https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg 2021-04-04 11:25:16 LOG_INFO: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] HTTPClient: HTTP GET https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg - 200 OK 2021-04-04 11:25:16 LOG_INFO: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] Couldn't determine filename for url: https://files.botsin.space/media_attachments/files/106/006/775/165/084/658/original/8fb9aa9ef78d736a.jpg 2021-04-04 11:25:16 LOG_DEBUG: [khp.ignorelist.com:48318.0dcad21f GET /aab/all] Requested local URL for a file that is not stored locally with id==1103210
aab commented 3 years ago
Poster

Ok, i've found a "fix" for this (please note the quotes): enabling again SensitiveContent plugin. Yes, the fix for bug in #121 is not working for me, but it somehow makes that images load fine. Distorted, but on first load XD

Ok, i've found a "fix" for this (please note the quotes): enabling again SensitiveContent plugin. Yes, the fix for bug in https://notabug.org/diogo/gnu-social/issues/121 is not working for me, but it somehow makes that images load fine. Distorted, but on first load XD
Diogo Cordeiro commented 3 years ago
Owner

Fixed with b4b71f7626

Fixed with https://notabug.org/diogo/gnu-social/commit/b4b71f762669d815ebe29bd7d27962a01a3349ea
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.