Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Exception: Runaway loop in get_first_page_top() #178

Closed
1 task done
murillo128 opened this issue Nov 10, 2023 · 1 comment
Closed
1 task done

Exception: Runaway loop in get_first_page_top() #178

murillo128 opened this issue Nov 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@murillo128
Copy link

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 murillo128 added the bug Something isn't working label Nov 10, 2023
@kesara
Copy link
Member

kesara commented Nov 10, 2023

@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.

@kesara kesara closed this as completed Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants