Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log the page that shows 500 Internal Error #97

Open
ikks opened this issue Mar 24, 2024 · 0 comments
Open

Log the page that shows 500 Internal Error #97

ikks opened this issue Mar 24, 2024 · 0 comments

Comments

@ikks
Copy link

ikks commented Mar 24, 2024

The users are prone to make mistakes when editing by hand that turn pages into 500 Internal Server Error.

Please help us identify what page is giving the error.

This markup is generatingv a 500 Internal Server Error

[[https://www.waze.com/en/live-map/directions/escola-tecnica-pandia-calogeras-r.-62-90-volta-redonda?place=w.207029799.2070297987.1827329|Waze|targethttps://ul.waze.com/ul?preview_venue_id=207029799.2070297987.1827329&navigate=yes&utm_campaign=default&utm_source=waze_website&utm_medium=lm_share_location="_blank"]]

The final users see this

image

Meanwhile the sysdamin sees a trace, but needs to dig to understand the problem with the access log and the error log. error log can help to debug

 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
     return self.app(environ, start_response)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 264, in __call__
     response = run(context)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 89, in run
     response = dispatch(request, context, action_name)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 137, in dispatch
     response = handle_action(context, pagename, action_name)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 203, in handle_action
     handler(context.page.page_name, context)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/action/diff.py", line 233, in execute
     newpage.send_page(count_hit=0, content_only=1, content_id="content-below-diff")
   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1332, in send_page
     start_line=pi['lines'])
   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1422, in send_page_content
     self.format(parser)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1444, in format
     parser.format(self.formatter)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1554, in format
     formatted_line = self.scan(line, inhibit_p=inhibit_p)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1364, in scan
     result.append(self.replace(match, inhibit_p))
   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1408, in replace
     result.append(replace_func(hit, match.groupdict()))
   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 893, in _link_repl
     acceptable_attrs=acceptable_attrs)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 679, in _get_params
     fixed, kw, trailing = wikiutil.parse_quoted_separated(params)
   File "/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py", line 1499, in parse_quoted_separated
     key, value = item
 ValueError: too many values to unpack

We can help them editing the page or looking for a patch that can solve this particular issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant