ietf-tools / ietf-at-ui

IETF Author Tools UI

Home Page:https://author-tools.ietf.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception: Runaway loop in get_first_page_top()

murillo128 opened this issue · comments

Describe the issue

When trying to convert a markdown draft to xml in https://author-tools.ietf.org/, I get the following error

id2xml error: Converting 'draft-murillo-whep-03.txt'

draft-murillo-whep-03.txt(92): Exception: Runaway loop in get_first_page_top()
Failure converting draft-murillo-whep-03.txt: Runaway loop in get_first_page_top()
Traceback (most recent call last):
File "/usr/local/bin/id2xml", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.10/dist-packages/id2xml/run.py", line 233, in run
xml = parser.parse_to_xml()
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 1012, in parse_to_xml
doc = self.document()
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 1041, in document
self.root.append(self.front())
File "/usr/local/lib/python3.10/dist-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 599, in dtrace
ret = fn(self, *params,**kwargs)
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 1076, in front
lines_left, lines_right, lines_title, lines_name = self.get_first_page_top()
File "/usr/local/lib/python3.10/dist-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 599, in dtrace
ret = fn(self, *params,**kwargs)
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 1210, in get_first_page_top
loops += 1 if loops < 68 else loop_break('get_first_page_top')
File "/usr/local/lib/python3.10/dist-packages/id2xml/parser.py", line 115, in loop_break
raise RunawayLoop("Runaway loop in %s()" % fn)
id2xml.parser.RunawayLoop: Runaway loop in get_first_page_top()

however I can get the idnits for it without problem. Not sure if it is an issue on the draft itselft, but the error log is not very helpfull for determining it.

Code of Conduct

@murillo128 author tools rely on the file extension to identify which tool to use.
You must rename your file extension to .md or .mkd.
Because it has .txt file extension, author tools feed the document to id2xml.