406 error fetching images...

sislamoglu
@sislamoglu Selcuk Islamoglu

By preview tool, I get following error:

•Our fetcher fails to fetch image at URL http://media.chip.com.tr/images/thumb/128/2012080921064656246.jpg.
•HTTP response code: 406.

We are using IIS7, also URL-Rewriter for friendly URL's but not using any of redirection on image directories.

Image can be seen via any browser, I'm wondering what am I doing wrong:

Example URL's such as:
http://www.chip.com.tr/haber/galaxy-note-10-1-daha-karli_35597.html

As video:
http://www.chip.com.tr/video/iste-yeni-iphone-5-tanitim-videosu_2883.html

1 year 44 weeks ago

Replies

club_caza
@club_caza Club de Caza

Happens to me exactly the same, and I have the same server. I tried with other images of other servers and it works perfectly. If the problem is the server type, should fix soon.

1 year 44 weeks ago
drw25
@drw25 Dan Warren

Same problem for me on shared IIS hosting, redirecting URLs using custom 404 error documents.

Here's the request from the server logs:
GET /wp-content/themes/twentyeleven-keenoxford/images/OGPLogo.png - 80 - 199.59.149.167 HTTP/1.1 Twitterbot/1.0 - - www.keenoxford.org 406 0 0 1294 191 156

Emulating that the best I can with http://www.rexswain.com/cgi-bin/httpview.cgi gives a 200 response followed by the image:

HTTP/1.1·200·OK(CR)(LF)
Content-Length:·90488(CR)(LF)
Content-Type:·image/png(CR)(LF)
Last-Modified:·Tue,·18·Sep·2012·00:58:04·GMT(CR)(LF)
Accept-Ranges:·bytes(CR)(LF)
ETag:·"1ef97aa83895cd1:9e83f"(CR)(LF)
Server:·Microsoft-IIS/6.0(CR)(LF)
X-Powered-By:·PleskWin(CR)(LF)
MicrosoftOfficeWebServer:·5.0_Pub(CR)(LF)
X-Powered-By:·ASP.NET(CR)(LF)
Date:·Thu,·20·Sep·2012·16:15:43·GMT(CR)(LF)
Connection:·close(CR)(LF)

I can only assume that the HTTP request Accept header from Twitterbot (which isn't included in the logs) is for some reason incompatible with this.

1 year 43 weeks ago
froginthevalley
@froginthevalley Sylvain Carle

We are investigating 406 errors.

1 year 42 weeks ago
sislamoglu
@sislamoglu Selcuk Islamoglu

Thank you so much, we will be waiting for 406's solution while waiting for approval of @chiponline and http://www.chip.com.tr cards...

1 year 42 weeks ago
cdnjay
@cdnjay Jason Cruickshank

I have the same problem, also on IIS. In the interim I've uploaded the image to AWS S3 which seems to work fine.

1 year 42 weeks ago
SpiritOficial
@SpiritOficial Spirit

I have same problem IIS 7.5

1 year 42 weeks ago
AkaashMaharaj
@AkaashMaharaj Akaash Maharaj

The problem does, indeed, seem to be that the Twitterbot (or the preview tool) is not configured to work with Microsoft-IIS servers. I similarly receive "406" errors from the preview tool when my image is hosted on my Microsoft-IIS/6.0 server, but no such errors when the same image is hosted on an Apache server.

1 year 42 weeks ago
mmatout
@mmatout Monther Atout

i have the same problem ...

1 year 42 weeks ago
mellodev
@mellodev // mellodev

I have the same issue with 406 errors. I'm using IIS 7.5 with URL Rewrite 2.0 module, although the requested image is NOT being rewritten or redirect. Returns 200 with fiddler:

HTTP/1.1 200 OK
Content-Type: image/png
Last-Modified: Thu, 13 Sep 2012 22:03:46 GMT
Accept-Ranges: bytes
ETag: "c36663a5fb91cd1:0"
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Sun, 30 Sep 2012 21:40:14 GMT
Content-Length: 175428

1 year 42 weeks ago
inploid
@inploid inploid

Same problem...

1 year 42 weeks ago
Frank_JDSupra
@Frank_JDSupra Frank Leach Jr.

Same problem.

1 year 41 weeks ago
wesselw
@wesselw Wessel Wit

Same problem.

1 year 41 weeks ago
ersin_ayaz
@ersin_ayaz Ersin AYAZ

Same problem.

1 year 41 weeks ago
sislamoglu
@sislamoglu Selcuk Islamoglu

@froginthevalley Any progress on 406 issues mate? Or any advices?

1 year 40 weeks ago
cinaradem
@cinaradem adem çınar

406 problemini çözebildiniz mi acaba?

1 year 39 weeks ago
LittleAppReview
@LittleAppReview LittleAppReview

I get this problem too. IIS 6.0.

1 year 39 weeks ago
HarveysPoint
@HarveysPoint Deirdre McGlone

@froginthevalley Hi Sylvain, any update on 406 errors fetching images on twitter cards?

1 year 39 weeks ago
cinaradem
@cinaradem adem çınar

IIS 7.5 has the same problem,
could you help me.

1 year 39 weeks ago
francesurf
@francesurf SebH, francesurf.net

I've got "Failed to get proxied image URL", i'm on II6
Should it be that 406 error ?

1 year 37 weeks ago
upbot
@upbot Alberto Alvarado

Twitterbot sends this header to get a image:
Accept: text/html, text/*

IIS sends 406 error because a image is "image/jpeg" MIME type
(Twitterbot only accepts text/html, text/*)

I think the header of Twitterbot could be
Accept: / or more specific Accept: text/*, image/*

1 year 36 weeks ago
froginthevalley
@froginthevalley Sylvain Carle

We should have a fix pretty soon for this one, thanks for your patience. I will update this thread once it's out there in production.

1 year 34 weeks ago
testmaventus
@testmaventus testmaventus

on preview tool, I get this error:

Fetching page at url https://maventus.tv/index/video?v=1&rndm=23 failed with HTTP status code 406.

1 year 26 weeks ago
albinoblack
@albinoblack Steven Lerner

It should really be just Accept: *

Some content, but especially Web pages, will have no extension. 406 is very common for robots because of this.
Same issue for me, and I'm on Apache with multiviews on.

1 year 20 weeks ago