Image not opening on page, but does open in a new tab. #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Running ./bssg.sh server from the code directory works as expected.
An image on a page shows a dead link with no image, but I can open it in a new tab using that dead link.
The image does show up when I start the server the old way.
This seems intermittent for me. Sometimes images load, sometimes not. Same with custom.css. I see "failed to load resource, cannot connect to the server" in console.
Thanks. Is it a local image or a remote one? Which is the image extension/format?
It is local.
Markdown is:
output:
<p><img src="/images/gPodder.png" alt="gPodder" /></p>@ajlewis2 wrote in #22 (comment):
Perfect. Can you please paste the server debug output? It could help to identify as I had a similar problem with css files and had to fix the mime type detection.
For me it's local .jpg images (plus the custom.css file, but that seems to have been temporary).
On my home page, there are two images. Sometimes, one or the other of them don't load. A reload often fixes it.
@stefano wrote in #22 (comment):
Is this what you mean. This is from using --debug on the command and forwarding output to a text file. I did a different page, because after running --debug with the other page, the image appeared! That did not happen on this page with another .png file. is 'apng' a filetype. I see that in this text.
Accidentally clicked "close" I think. I'm sorry.
I think I found the issue. It's a concurrency problem: netcat is single threaded, so it will serve the html and then restart. So the other files (media files, mainly) will find a connection refused. I'm not hosting media files locally, so I didn't notice it. I'm going to revamp another implementation of the server part - I preferred netcat for portability, but will probably adapt the socat version.
Could you please try to update to the latest commit, install socat and try again? Thank you!
@stefano wrote in #22 (comment):
Looks good! Images load and I'm not getting that on and off css loading. Thanks. This is a nice addition.
@ajlewis2 wrote in #22 (comment):
Perfect! Thank you for your feedback!