I just don't get why my website won't verify on Iceshrimp even with the latest patch to work with as well.
-
I just don't get why my website won't verify on Iceshrimp.NET even with the latest patch to work with
<link>
as well. It makes the request and my server doesn't block it, and the links are correctly defined, so what the fuck????{"level":"info","ts":1740556693.001831,"logger":"http.log.access.log10","msg":"handled request","request":{"remote_ip":"2a01:4f8:1c1b:279c::1","remote_port":"33286","client_ip":"2a01:4f8:1c1b:279c::1","proto":"HTTP/2.0","method":"GET","host":"volpeon.ink","uri":"/","headers":{"User-Agent":["Iceshrimp.NET/2025.1-beta5.patch2+b98de5a2f4 (+https://icy.wyvern.rip/)"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"volpeon.ink"}},"bytes_read":0,"user_id":"","duration":0.006570128,"size":17740,"status":200,"resp_headers":{"X-Content-Type-Options":["nosniff"],"X-Xss-Protection":["1; mode=block"],"Last-Modified":["Wed, 26 Feb 2025 07:01:59 GMT"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Cache-Control":["public, max-age=3600"],"Vary":["Accept-Encoding"],"Content-Encoding":["gzip"],"Server":["Caddy"],"X-Frame-Options":["deny"],"Etag":["\"d826nogn39y31auv-gzip\""],"Content-Type":["text/html; charset=utf-8"],"Referrer-Policy":["strict-origin"]}}
-
I just don't get why my website won't verify on Iceshrimp.NET even with the latest patch to work with
<link>
as well. It makes the request and my server doesn't block it, and the links are correctly defined, so what the fuck????{"level":"info","ts":1740556693.001831,"logger":"http.log.access.log10","msg":"handled request","request":{"remote_ip":"2a01:4f8:1c1b:279c::1","remote_port":"33286","client_ip":"2a01:4f8:1c1b:279c::1","proto":"HTTP/2.0","method":"GET","host":"volpeon.ink","uri":"/","headers":{"User-Agent":["Iceshrimp.NET/2025.1-beta5.patch2+b98de5a2f4 (+https://icy.wyvern.rip/)"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"volpeon.ink"}},"bytes_read":0,"user_id":"","duration":0.006570128,"size":17740,"status":200,"resp_headers":{"X-Content-Type-Options":["nosniff"],"X-Xss-Protection":["1; mode=block"],"Last-Modified":["Wed, 26 Feb 2025 07:01:59 GMT"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Cache-Control":["public, max-age=3600"],"Vary":["Accept-Encoding"],"Content-Encoding":["gzip"],"Server":["Caddy"],"X-Frame-Options":["deny"],"Etag":["\"d826nogn39y31auv-gzip\""],"Content-Type":["text/html; charset=utf-8"],"Referrer-Policy":["strict-origin"]}}
@volpeon@icy.wyvern.rip maybe it only accepts one rel=me link per page?
-
@volpeon@icy.wyvern.rip maybe it only accepts one rel=me link per page?
-
@volpeon@icy.wyvern.rip hmm... And I assume you've already checked the log output from iceshrimp for that "precondition failed" message. Because that mime type seems a bit too restrictive to me, for example not taking into account XHTML?
-
I just don't get why my website won't verify on Iceshrimp.NET even with the latest patch to work with
<link>
as well. It makes the request and my server doesn't block it, and the links are correctly defined, so what the fuck????{"level":"info","ts":1740556693.001831,"logger":"http.log.access.log10","msg":"handled request","request":{"remote_ip":"2a01:4f8:1c1b:279c::1","remote_port":"33286","client_ip":"2a01:4f8:1c1b:279c::1","proto":"HTTP/2.0","method":"GET","host":"volpeon.ink","uri":"/","headers":{"User-Agent":["Iceshrimp.NET/2025.1-beta5.patch2+b98de5a2f4 (+https://icy.wyvern.rip/)"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"volpeon.ink"}},"bytes_read":0,"user_id":"","duration":0.006570128,"size":17740,"status":200,"resp_headers":{"X-Content-Type-Options":["nosniff"],"X-Xss-Protection":["1; mode=block"],"Last-Modified":["Wed, 26 Feb 2025 07:01:59 GMT"],"Strict-Transport-Security":["max-age=31536000; includeSubDomains"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"Cache-Control":["public, max-age=3600"],"Vary":["Accept-Encoding"],"Content-Encoding":["gzip"],"Server":["Caddy"],"X-Frame-Options":["deny"],"Etag":["\"d826nogn39y31auv-gzip\""],"Content-Type":["text/html; charset=utf-8"],"Referrer-Policy":["strict-origin"]}}
OH! I got it. The debug log says
Skipping profile field link verification of https://volpeon.ink/ for user 9x1pkmiu4v33a1zr: precondition failed
The condition to get this output isif ( res is not { IsSuccessStatusCode: true, Content.Headers: { ContentType.MediaType: "text/html", ContentLength: <= 1_000_000 } } )
My server respond with a content type oftext/html; charset=utf-8
. I don't know if C# handles this case or not, but this is the only problem I can see here.
cc @zotan -
@volpeon@icy.wyvern.rip hmm... And I assume you've already checked the log output from iceshrimp for that "precondition failed" message. Because that mime type seems a bit too restrictive to me, for example not taking into account XHTML?
@Johann150 I was just doing that and it may be due to the additional "charset=utf-8". I see nothing else that could cause it
-
@Johann150 I was just doing that and it may be due to the additional "charset=utf-8". I see nothing else that could cause it
@volpeon@icy.wyvern.rip ye that's along what I was thinking
-
OH! I got it. The debug log says
Skipping profile field link verification of https://volpeon.ink/ for user 9x1pkmiu4v33a1zr: precondition failed
The condition to get this output isif ( res is not { IsSuccessStatusCode: true, Content.Headers: { ContentType.MediaType: "text/html", ContentLength: <= 1_000_000 } } )
My server respond with a content type oftext/html; charset=utf-8
. I don't know if C# handles this case or not, but this is the only problem I can see here.
cc @zotan@volpeon@icy.wyvern.rip @zotan@estrogen.network might also want to accept
application/xhtml+xml
, I recall fixing that for misskey link previews previously -
@volpeon@icy.wyvern.rip @zotan@estrogen.network might also want to accept
application/xhtml+xml
, I recall fixing that for misskey link previews previously