Subject: [xml2rfc] 302 error for RFC0793

From: Tom Pusateri <[email-masked]>
Date: Fri, 17 May 2019 12:24:50 -0400

This used to work. I just recreated the virtual environment and re-installed xml2rfc today and now it doesn’t.

% xml2rfc draft-ietf-dnssd-push.xml -o draft-ietf-dnssd-push.txt --text
Parsing file draft-ietf-dnssd-push.xml
Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error: Unable to parse the XML document: draft-ietf-dnssd-push.xml
 <string>: Line 1094: Failure to process entity RFC0793
 <string>: Line 1094: Entity 'RFC0793' not defined

% xml2rfc --version
xml2rfc 2.22.3
% python --version
Python 3.7.3

Here’s the relevant XML from the source:

<!ENTITY RFC0793 SYSTEM  "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.0793.xml”>

Verbose version shows a 302 error. I’m sure the leading 0 was required at one point.

% xml2rfc -v draft-ietf-dnssd-push.xml -o draft-ietf-dnssd-push.txt --text
Parsing file draft-ietf-dnssd-push.xml
Resolving entity... /Users/pusateri/.virtualenvs/rfc/lib/python3.7/site-packages/xml2rfc/templates/rfc2629.dtd
Resolving entity... /Users/pusateri/.virtualenvs/rfc/lib/python3.7/site-packages/xml2rfc/templates/rfc2629-xhtml.ent
Resolving entity... /Users/pusateri/.virtualenvs/rfc/lib/python3.7/site-packages/xml2rfc/templates/rfc2629-other.ent
Resolving entity... /Users/pusateri/.virtualenvs/rfc/lib/python3.7/site-packages/xml2rfc/templates/rfc2629.dtd
Resolving entity... /Users/pusateri/.virtualenvs/rfc/lib/python3.7/site-packages/xml2rfc/templates/rfc2629-xhtml.ent
Resolving entity... /Users/pusateri/.virtualenvs/rfc/lib/python3.7/site-packages/xml2rfc/templates/rfc2629-other.ent
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.0768.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.0768.xml
Cached version at /Users/pusateri/.cache/xml2rfc/reference.RFC.0793.xml too old; will refresh cache for entity https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.0793.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.0793.xml
 ... 302 https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.0793.xml
 ... 200 https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.0793.xml
Added file to cache:  /Users/pusateri/.cache/xml2rfc/reference.RFC.0793.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1034.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.1034.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1035.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.1035.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.1123.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.1123.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.2119.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2136.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.2136.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2181.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.2181.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2782.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.2782.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6066.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6066.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6895.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6895.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7673.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.7673.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7766.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.7766.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.8174.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8446.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.8446.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8490.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.8490.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2308.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.2308.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3123.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.3123.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4287.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.4287.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4953.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.4953.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5077.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.5077.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6281.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6281.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6762.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6762.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6763.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6763.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6824.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6824.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6886.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6886.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6887.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.6887.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7413.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.7413.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7525.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.7525.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7719.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.7719.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7858.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.7858.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8010.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.8010.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8011.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.8011.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.dukkipati-tcpm-tcp-loss-probe.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.I-D.dukkipati-tcpm-tcp-loss-probe.xml
Resolving entity... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8310.xml
Loaded from cache /Users/pusateri/.cache/xml2rfc/reference.RFC.8310.xml
Resolving include... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6335
 ... 302 https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6335
 ... 404 https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6335
URL retrieval failed with status code 404 for 'https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6335'
Cached version at /Users/pusateri/.cache/xml2rfc/reference.RFC.6335.xml too old; will refresh cache for include https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6335.xml
Resolving include... https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6335.xml
 ... 302 https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6335.xml
 ... 200 https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6335.xml
Added file to cache:  /Users/pusateri/.cache/xml2rfc/reference.RFC.6335.xml
Error: Unable to validate the XML document: draft-ietf-dnssd-push.xml
 <string>: Line 953: Element texttable content does not follow the DTD, expecting (preamble? , ttcol+ , c* , postamble?), got (ttcol ttcol ttcol ttcol ttcol ttcol c c c c c c c c c c c c c c c c c c c c CDATA c c c c)

---

From: Tom Pusateri <[email-masked]>
Date: Fri, 17 May 2019 12:30:46 -0400

And it’s working again… Maybe it depends on the server I reach.

Tom

> On May 17, 2019, at 12:24 PM, Tom Pusateri <[email-masked]> wrote:
> 
> _______________________________________________
> xml2rfc mailing list
> [email-masked]
> https://www.ietf.org/mailman/listinfo/xml2rfc

---

From: Henrik Levkowetz <[email-masked]>
Date: Fri, 17 May 2019 18:34:29 +0200

Hi Tom,

> And it’s working again… Maybe it depends on the server I reach.

I think it was a load issue.  Looking at load history now, to see if there
is any action to take.

	Henrik

---

From: Carsten Bormann <[email-masked]>
Date: Fri, 17 May 2019 19:08:19 +0200

> Verbose version shows a 302 error. I’m sure the leading 0 was required at one point.

In kramdown-rfc, a while ago I changed the default hostname from xml2rfc.ietf.org to xml2rfc.tools.ietf.org to avoid those 302s.

(There is nothing wrong with the leading zero in RFC0793.)

Grüße, Carsten

---

From: Carsten Bormann <[email-masked]>
Date: Sat, 18 May 2019 17:08:37 +0200

> Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

(As a more general observation about tools that use a web service like this:
There probably should be some retry scheduling if a service request fails indeterminately.)

Grüße, Carsten