SHARE
TWEET

Untitled

a guest Mar 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://localhost:8000/import/
  6.  
  7. Django Version: 2.0.9
  8. Python Version: 3.6.5
  9. Installed Applications:
  10. ['django.contrib.admin',
  11.  'django.contrib.auth',
  12.  'django.contrib.contenttypes',
  13.  'django.contrib.sessions',
  14.  'django.contrib.messages',
  15.  'django.contrib.staticfiles',
  16.  'user',
  17.  'internal',
  18.  'recipes',
  19.  'external_recipe_handler']
  20. Installed Middleware:
  21. ['django.middleware.security.SecurityMiddleware',
  22.  'django.contrib.sessions.middleware.SessionMiddleware',
  23.  'django.middleware.common.CommonMiddleware',
  24.  'django.middleware.csrf.CsrfViewMiddleware',
  25.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  26.  'django.contrib.messages.middleware.MessageMiddleware',
  27.  'django.middleware.clickjacking.XFrameOptionsMiddleware']
  28.  
  29.  
  30.  
  31. Traceback:
  32.  
  33. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  34.   35.             response = get_response(request)
  35.  
  36. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  37.   128.                 response = self.process_exception_by_middleware(e, request)
  38.  
  39. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  40.   126.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  41.  
  42. File "/Users/alexaor/code/PU/gruppe-65/external_recipe_handler/views.py" in import_recipe
  43.   30.     get_remote_image(final_recipe)
  44.  
  45. File "/Users/alexaor/code/PU/gruppe-65/external_recipe_handler/views.py" in get_remote_image
  46.   85.             File(open(result[0]))
  47.  
  48. File "/usr/local/lib/python3.6/site-packages/django/db/models/fields/files.py" in save
  49.   87.         self.name = self.storage.save(name, content, max_length=self.field.max_length)
  50.  
  51. File "/usr/local/lib/python3.6/site-packages/django/core/files/storage.py" in save
  52.   49.         return self._save(name, content)
  53.  
  54. File "/usr/local/lib/python3.6/site-packages/django/core/files/storage.py" in _save
  55.   268.                         for chunk in content.chunks():
  56.  
  57. File "/usr/local/lib/python3.6/site-packages/django/core/files/base.py" in chunks
  58.   71.             data = self.read(chunk_size)
  59.  
  60. File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py" in decode
  61.   321.         (result, consumed) = self._buffer_decode(data, self.errors, final)
  62.  
  63. Exception Type: UnicodeDecodeError at /import/
  64. Exception Value: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top