<type 'exceptions.UnicodeDecodeError'> 'utf8' codec can't decode byte 0xa0 in position 0: invalid start byteVersion web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 Python Python 2.7.12: /usr/local/bin/uwsgi (prefix: /usr)Traceback
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/home/www-data/web2py/applications/g/controllers/default.py" <https://127.0.0.1/admin/edit/g/controllers/default.py>, line 68, in <module> File "/home/www-data/web2py/gluon/globals.py", line 421, in <lambda> self._caller = lambda f: f() File "/home/www-data/web2py/gluon/cache.py", line 644, in wrapped_f rtn = func() File "/home/www-data/web2py/applications/g/controllers/default.py" <https://127.0.0.1/admin/edit/g/controllers/default.py>, line 64, in download return response.download(request, db) File "/home/www-data/web2py/gluon/globals.py", line 673, in download (filename, stream) = field.retrieve(name, nameonly=True) File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 1918, in retrieve file_properties = self.retrieve_file_properties(name, path) File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 1949, in retrieve_file_properties filename = base64.b16decode(m.group('name'), True).decode('utf-8') File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xa0 in position 0: invalid start byte Error snapshot [image: help] <https://127.0.0.1/admin/default/ticket/g/127.0.0.1.2019-10-07.20-41-17.dda2b68f-835d-43fa-8a41-a594ab02280f#> <type 'exceptions.UnicodeDecodeError'>('utf8' codec can't decode byte 0xa0 in position 0: invalid start byte) inspect attributes Frames - *File /home/www-data/web2py/gluon/restricted.py in restricted at line 219* code arguments variables - *File /home/www-data/web2py/applications/g/controllers/default.py in <module> at line 68* code arguments variables - *File /home/www-data/web2py/gluon/globals.py in <lambda> at line 421* code arguments variables - *File /home/www-data/web2py/gluon/cache.py in wrapped_f at line 644* code arguments variables - *File /home/www-data/web2py/applications/g/controllers/default.py in download at line 64* code arguments variables - *File /home/www-data/web2py/gluon/globals.py in download at line 673* code arguments variables - *File /home/www-data/web2py/gluon/packages/dal/pydal/objects.py in retrieve at line 1918* code arguments variables - *File /home/www-data/web2py/gluon/packages/dal/pydal/objects.py in retrieve_file_properties at line 1949* code arguments variables - *File /usr/lib/python2.7/encodings/utf_8.py in decode at line 16* code arguments variables Function argument list (input='\xa0\x1b\x18>\x10\x85\xe1\x11', errors='strict') Code listing 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. ### Codec APIs encode = codecs.utf_8_encode def decode(input, errors='strict'): return codecs.utf_8_decode(input, errors, True) class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): return codecs.utf_8_encode(input, self.errors)[0] Variables input '\xa0\x1b\x18>\x10\x85\xe1\x11' builtinTrue True errors 'strict' global codecs <module 'codecs' from '/usr/lib/python2.7/codecs.pyc'> codecs.utf_8_decode <built-in function utf_8_decode> Context On Monday, October 7, 2019 at 7:11:52 AM UTC, Dave S wrote: > > > > On Saturday, October 5, 2019 at 9:41:47 AM UTC-7, dirman wrote: >> >> i really need help on this >> >> On Wednesday, October 2, 2019 at 10:15:37 AM UTC, dirman wrote: >>> >>> <type 'exceptions.UnicodeDecodeError'> 'utf8' codec can't decode byte >>> 0xb7 in position 0: invalid start byte >>> >>> Getting the above error as thumbnails are not showing. what could be the >>> issue >>> >> > Can you show the complete stack trace? We may also need to see your > controller function. > > /dps > > >> ? >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ba67eeb6-8fa2-4677-add7-db028edcfe20%40googlegroups.com.