-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images not being displayed properly in cards generated by a link #6171
Comments
Seems like the proxy is failing with the image request somehow, it did pull in the right image URL (https://godotengine.org/storage/blog/covers/dev-snapshot-godot-4-4-dev-4.webp) |
I wonder if it is because of the format? it being |
shouldn't affect it, I think. not sure who to @ here |
We have the same issue on our sites - e.g. Getting an article works correctly - from Cardyb
Getting the image:
|
For those who find this thread - make sure your image has a Content-Type Header - that seems to be the cause. In short: This works - and the only difference in headers is the Content-Type: image/jpeg Original image:
New image that works:
@coppolaemilio - looking at your headers for your image - you also don't have the content-type header.
|
@TimJoy-NQDM that fixed the issue! I still think Bluesky should fix it on their end, so I'll leave the issue open. |
Adding a +1 to this issue. Does anyone know how to make sure the content-type header gets set for OG images automatically generated with NextJS? |
We are facing the exect issue, sharing on facebook, twitter and other social media, social metadata appears as they should. But at Bluesky, that's not the case, our application is in Nuxt3 |
I'm experiencing the same issue with the correct content-type for my og:image. https://coffey.dad/blog/post/making-a-password-manager-in-go |
This issue was first reported about 6 months ago. Tests I've performed to try and narrow down causes at the source website end... image file extension - .jpg / .jpeg / .webp / .png etc - no correlation between image appearing or not content-type header - images with this set correctly do not appear. I have found no other correlations between headers and images not appearing in the card (e.g. cache rules, sources etc) twitter:image - no correlation with the tag being present or not and the image appearing tag order - changes to the tag order (e.g. placing og:image at the top of the header or elsewhere) have no effect on whether image is presented. other image tags (e.g. og:image:width) - no correlation with their absence and an image not being displayed. I have not found in my logs any attempt to request images from test URLs created specifically to find out what I needed to change on my estate. There appears to be a behaviour where once a card has been attempted from a domain that fails, further attempts at loading a card bypass the image request completely, which makes repeated testing difficult. I have found a resource that failed to load on the Bsky web app due to ACL issues -> Given all the pages I tested (both on my sites and others) had correctly formed og tags, passed og verification and presented correctly on other sites where cards are supported, my conclusion is this is a BlueSky issue. Edit: I have found no correlation between cards not appearing and browser / device combinations. |
I came across this issue and figured out I experience the same "Unable to serve image from URL" error message from https://cardyb.bsky.app/v1/image?url=https://my-image. I noticed that when I changed the image?url=https:// to image?url=http:// it did show up in the webserver logs where https didn't. I disabled http to https redirection on my site specifically for those images and replaced https to http on the og:image meta property and images are now being displayed correctly in cards generated by a link. I'm using Let's Encrypt and as far as I could tell there was no SSL misconfiguration on my end, but it had been a while since I validated that. I used SSL Labs to do a quick check and saw that my site was capped to a B rating because I was missing AEAD cipher suites. After enabling those Bluesky can now succesfully fetch the image of a card on my site via https. |
We could do with something like Meta's sharing debugger - using it forces it to scrape and cache changes & updated images. |
Steps to Reproduce
Whenever we share Godot news on Bluesky, we get no card image in the posts.
This is how the same input renders in three different social networks:
Twitter
Mastodon
Bluesky
The url of the page being shared: https://godotengine.org/article/dev-snapshot-godot-4-4-dev-4/
The website has these two elements in the
<head>
pointing to the image:Our website is statically generated, so we are not dynamically pulling this data.
What platform(s) does this occur on?
iOS, Web (Desktop), Web (Mobile)
What version of the app are you using?
Build version: 1.92.1.530; Bundle info: 89cff31 (prod); Bundle date: 24101917; Platform: ios
The text was updated successfully, but these errors were encountered: