arachnode.net v2.0
An open source .NET web crawler written in C# using SQL 2005/2008

Parameter is not valid - may be 304 response issue for images and maybe more

rated by 0 users
Answered (Verified) This post has 1 verified answer | 2 Replies | 2 Followers

Top 10 Contributor
Male
101 Posts
Kevin posted on 09-04-2009 3:09 PM

In reviewing Parameter is not valid errors in Exceptions table, it appears that this may be due to 304 responses.

In testing, I get this error on images returned.  Using firebug to see what exactly comes back when these particular absoluteuri images are requested, I see that the first time I get a 200 and on a refresh I get a 304 not returned probably due to caching on the server end.

Debugging ImageManager, I think what is happening is that the image is actually not being returned, so line 96 is trying to do a FromStream call when the stream is a 0 byte stream (nothing returned so nothing there).

So need to look at how 304 respones are handled for images and maybe other things as well.

Kevin

 

Answered (Verified) Verified Answer

Top 10 Contributor
Male
927 Posts

Not all WebServers handle the 'Accept-Type' HttpHeader properly.  Fixed in, 1.2 or greater.

An open source .NET web crawler written in C# using SQL 2008.

Join the arachnode.net group on Facebook: http://www.facebook.com/groups.php?ref=sb#/group.php?gid=166721755872

Twitter: http://twitter.com/arachnode_net

arachnode.net is provides custom crawling and contracting resources.  Please ask.

http://bit.ly/TOFX4

All Replies

Top 10 Contributor
Male
927 Posts

I wonder if this is due to making a HEAD request first?

An open source .NET web crawler written in C# using SQL 2008.

Join the arachnode.net group on Facebook: http://www.facebook.com/groups.php?ref=sb#/group.php?gid=166721755872

Twitter: http://twitter.com/arachnode_net

arachnode.net is provides custom crawling and contracting resources.  Please ask.

http://bit.ly/TOFX4

Top 10 Contributor
Male
927 Posts

Not all WebServers handle the 'Accept-Type' HttpHeader properly.  Fixed in, 1.2 or greater.

An open source .NET web crawler written in C# using SQL 2008.

Join the arachnode.net group on Facebook: http://www.facebook.com/groups.php?ref=sb#/group.php?gid=166721755872

Twitter: http://twitter.com/arachnode_net

arachnode.net is provides custom crawling and contracting resources.  Please ask.

http://bit.ly/TOFX4

Page 1 of 1 (3 items) | RSS
An open source .NET web crawler written in C# using SQL 2005/2008

copyright 2009, arachnode.net LLC

Powered by Community Server (Non-Commercial Edition), by Telligent Systems