Description of issue:
Twitter card do not show image even if validator does not show any errors.
URL affected (must be public):
https://qiita-api-scratchpad.sevengreenz.net/
The image URL is broken, it serves a webpage instead of an image: https://qiita-api-scratchpad.sevengreenz.net/image/logo.png
1 Like
@IgorBrigadir
Thank you for your reply.
How do I check if my image is broken ?
I think https://qiita-api-scratchpad.sevengreenz.net/image/logo.png serves an image.
❯ curl -X GET -I https://qiita-api-scratchpad.sevengreenz.net/image/logo.png
HTTP/2 200
content-type: image/png
content-length: 157500
date: Tue, 14 May 2019 14:23:37 GMT
last-modified: Tue, 23 Apr 2019 17:07:20 GMT
etag: "ecd982b9217b14bfb8c61703e65c269d"
accept-ranges: bytes
server: AmazonS3
x-cache: Miss from cloudfront
via: 1.1 de1e0512870ecb921a29c3e0d4ec2bf4.cloudfront.net (CloudFront)
x-amz-cf-id: 7nBxOo3tCKDFVPeNevmZDTY-6P2XuWT6igspM1o5xLE0WylBhqbVSQ==
I’m really not sure what’s happening there: i still get a text/html instead of image.
It might be something with cloudfront or S3 or something else on your server
curl -X GET -I https://qiita-api-scratchpad.sevengreenz.net/image/logo.png
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 1079
Connection: keep-alive
Date: Tue, 14 May 2019 14:58:16 GMT
Last-Modified: Tue, 14 May 2019 14:00:12 GMT
ETag: "5a297626d44fd7132dfbd6ade03aef41"
Accept-Ranges: bytes
Server: AmazonS3
Age: 129
X-Cache: Error from cloudfront
Via: 1.1 ce886ee8b81462a33df38fd30b6c306d.cloudfront.net (CloudFront)
X-Amz-Cf-Id: fnl49xgnKoeua2KsbuyE1Wj3pcankXqvqS44HlWDx3m1WEBu3nAFVw==
I have disabled the Geo restriction of cloudfront but not working.
Can you show me https://qiita-api-scratchpad.sevengreenz.net/image/logo.png on your browser?
That seems to have done the trick - i can see the image exactly like your screenshot and curl is returning an image instead of html, and the validator correctly renders the thumbnail.
2 Likes
@IgorBrigadir
Thanks for your help.
I can see an image on the validator now.
Once again thank you.
1 Like