Re: 503 server unavailable error occurred while downloading DTD from W3C

[sorry, my previous message was sent too early]

Hi Jeffrey,

Le mercredi 03 octobre 2007 à 13:40 +0000, Jeffrey Zheng a écrit :
> One of our projects started giving an error this morning like this:
> The remote server returned an error: (503) Server Unavailable.
> 
> After investigated the stack trace, it seems that the error was caused
> while the application was parsing a template in XML format. After the
> line of DOCTYPE was commented out, the application came back running.
> Here is the original DOCTYPE:
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> 
> Is there a limit on the number of requests for the DTD file? Is it
> because our application have exceeded the limit, which caused the
> error?

Indeed, W3C now imposes a limit on the number of requests that can be
made on a DTD in a given time range.
http://www.w3.org/Help/Webmaster.html#block

Note that there are plenty of options to avoid hitting the W3C servers
with DTD requests over and over:
 * disabling DTD validation in your project
 * using an XML Catalog
 * using a proxy between your application and the Web

Hope this helps,

Dom

Received on Thursday, 4 October 2007 09:07:14 UTC