StoryArc - SyntaxException error

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
kpc180
Posts: 8
Joined: Thu Jul 15, 2021 3:24 pm

StoryArc - SyntaxException error

Post by kpc180 »

Hey, I'm running Mylar3 on Unraid and am wondering if I am doing something wrong. I have storyarcs running and some seem to add fine and some do not. When I add one that doesn't work I get this error: "SyntaxException: Expected: \|,} in file '/app/data/interfaces/default/storyarc_detail.html' at line: 340 char: 2"

That error pops up everytime I click on the story arc to see it's details and issues. However, it does still seem to scan my watch folders for the issues and moves them and names them and even updates the progress bar that shows ### of ###.

Other arcs don't have this issue at all and allow me to see into them.
Works: Civil War, House of M, The Road to Civil War
Throws the Error: Empyre, Future State, Heroes Reborn

Code: Select all

Error !
SyntaxException: Expected: \|,} in file '/app/data/interfaces/default/storyarc_detail.html' at line: 340 char: 2
$(document).ready(function() { initThisPage(); initActions(); }); </script> </%def>
/usr/lib/python3.9/site-packages/mako/lexer.py, line 143:
raise exceptions.SyntaxException(
/usr/lib/python3.9/site-packages/mako/lexer.py, line 427:
text, end = self.parse_until_text(True, r"\|", r"}")
/usr/lib/python3.9/site-packages/mako/lexer.py, line 262:
if self.match_expression():
/usr/lib/python3.9/site-packages/mako/template.py, line 709:
node = lexer.parse()
/usr/lib/python3.9/site-packages/mako/template.py, line 730:
source, lexer = _compile(
/usr/lib/python3.9/site-packages/mako/template.py, line 427:
code, module = _compile_text(self, data, filename)
/usr/lib/python3.9/site-packages/mako/template.py, line 347:
module = self._compile_from_file(path, filename)
/usr/lib/python3.9/site-packages/mako/lookup.py, line 322:
self._collection[uri] = template = Template(
/usr/lib/python3.9/site-packages/mako/lookup.py, line 260:
return self._load(srcfile, uri)
/app/mylar/webserve.py, line 101:
template = _hplookup.get_template(templatename)
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: StoryArc - SyntaxException error

Post by evilhero »

Unfortunately the cherrypy error doesn't tell much.

Put mylar into debug/verbose mode, and try adding one of the arcs that has that problem. Once it errors, shutdown Mylar and pastebin the log file somewhere so we can see what's happening.
kpc180
Posts: 8
Joined: Thu Jul 15, 2021 3:24 pm

Re: StoryArc - SyntaxException error

Post by kpc180 »

Thanks for the quick reply! I'm running this as un unraid docker - and I'm not quite sure how to get it in debugging. I'll google around but if anyone knows (and knows how to dumb it down!) let me know!
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: StoryArc - SyntaxException error

Post by evilhero »

Check the wiki for debug logging here
kpc180
Posts: 8
Joined: Thu Jul 15, 2021 3:24 pm

Re: StoryArc - SyntaxException error

Post by kpc180 »

I may not have done this right - let me know if it's helpful.

https://pastebin.com/3uqaBsF1
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: StoryArc - SyntaxException error

Post by evilhero »

You did it fine, the error was totally on me.

Apparently I mistyped a curly-bracket as a normal bracket which broke things in the html (fml - it took me an hr to find it)

PR #813 fixes this, but it will hit python3-dev branch prior to the master so you might have to wait a day or two before we merge up.
kpc180
Posts: 8
Joined: Thu Jul 15, 2021 3:24 pm

Re: StoryArc - SyntaxException error

Post by kpc180 »

Great! Thanks so much!
Post Reply