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

UnicodeDecodeError in content_rewriter.py #702

Open
deliciouslytyped opened this issue Mar 29, 2022 · 0 comments
Open

UnicodeDecodeError in content_rewriter.py #702

deliciouslytyped opened this issue Mar 29, 2022 · 0 comments

Comments

@deliciouslytyped
Copy link

I installed conifer via docker-compose as specified in the readme, along with: Rhizome-Conifer/conifer#850

In the app containers logs I get errors like the following, however record and replay appears to work, but I'm not sure if I'm missing anything. Is this a problem?:

[pid: 25|app: 0|req: 136/679] 192.168.32.1 () {44 vars in 1178 bytes} [Tue Mar 29 01:48:44 2022] GET /aaa/default-collection/ghvhy5oulksthfu6/record/js_/[redacted] => ge
nerated 157811 bytes in 443 msecs (HTTP/1.1 200) 20 headers in 1924 bytes (14 switches on core 396)                                                                                                                                           
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 862, in _handle
    return route.call(**args)     
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)           
  File "./webrecorder/contentcontroller.py", line 347, in do_record
    return self.handle_routing(wb_url, user, coll, rec, type='record', redir_route='record')
  File "./webrecorder/contentcontroller.py", line 838, in handle_routing                   
    resp = self.render_content(wb_url, kwargs, request.environ)
  File "/usr/local/lib/python3.7/site-packages/pywb-2.4.1-py3.7.egg/pywb/apps/rewriterapp.py", line 541, in render_content
    title = DefaultRewriter._extract_title(gen)      
  File "/usr/local/lib/python3.7/site-packages/pywb-2.4.1-py3.7.egg/pywb/rewrite/content_rewriter.py", line 36, in _extract_title
    m = cls.TITLE.search(title_res[0].decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf5 in position 7903: invalid start byte 
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