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

Search for Laminas\XmlRpc\Client #2250

Closed
r0073rr0r opened this issue Mar 12, 2023 · 2 comments
Closed

Search for Laminas\XmlRpc\Client #2250

r0073rr0r opened this issue Mar 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@r0073rr0r
Copy link

r0073rr0r commented Mar 12, 2023

Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG

How did you install SearXNG?

What happened?

How To Reproduce
Try searching for: Laminas\XmlRpc\Client

Search Laminas\XmlRpc\Client
Expected behavior

Screenshots & Logs

Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Additional context

@r0073rr0r r0073rr0r added the bug Something isn't working label Mar 12, 2023
@Solirs
Copy link
Contributor

Solirs commented Mar 12, 2023

Tested and can confirm from latest commit
Full error:

Traceback (most recent call last):
  File "/usr/lib64/python3.10/sre_parse.py", line 1051, in parse_template
    this = chr(ESCAPES[this][1])
KeyError: '\\X'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/flask/app.py", line 2551, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/Solirs/Documents/code/searxng/searx/flaskfix.py", line 71, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/werkzeug/middleware/proxy_fix.py", line 187, in __call__
    return self.app(environ, start_response)
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/flask/app.py", line 2531, in wsgi_app
    response = self.handle_exception(e)
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/Solirs/Documents/code/searxng/local/py3/lib64/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/Solirs/Documents/code/searxng/searx/webapp.py", line 716, in search
    result['content'] = highlight_content(escape(result['content'][:1024]), search_query.query)
  File "/home/Solirs/Documents/code/searxng/searx/webutils.py", line 177, in highlight_content
    content = re.sub(regex_highlight_cjk(q), f'<span class="highlight">{q}</span>', content)
  File "/usr/lib64/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/usr/lib64/python3.10/re.py", line 326, in _subx
    template = _compile_repl(template, pattern)
  File "/usr/lib64/python3.10/re.py", line 317, in _compile_repl
    return sre_parse.parse_template(repl, pattern)
  File "/usr/lib64/python3.10/sre_parse.py", line 1054, in parse_template
    raise s.error('bad escape %s' % this, len(this))
re.error: bad escape \X at position 31

return42 pushed a commit to Solirs/searxng that referenced this issue Mar 17, 2023
dalf pushed a commit to dalf/searxng that referenced this issue Mar 17, 2023
@return42
Copy link
Member

fixed in #2257

dalf pushed a commit to dalf/searxng that referenced this issue Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants