mozillahispano / mozbuzz

Tracking tool for media mentions
http://www.mozilla-hispano.org
15 stars 25 forks source link

Error while trying to create a report #44

Closed RickieES closed 11 years ago

RickieES commented 11 years ago

While trying to create a report, and once all the fields were filled and were ready to be added to the DB, just after clicking Submit button, i got this error message (despite of which the record has been correctly created and is visible on the web):

Environment:

Request Method: POST Request URL: https://mozilla-hispano.org/mozbuzz/mention/create

Django Version: 1.5.1 Python Version: 2.6.5 Installed Applications: ('django.contrib.auth', 'django_browserid', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.markup', 'south', 'buzz') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  2. return view_func(request, _args, *_kwargs) File "../mozbuzz/buzz/utils.py" in inner
  3. result = view(request, _args, *_kwargs) File "/var/lib/mozbuzz/buzz/views.py" in mention
  4. instance.save() File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save
  5. force_update=force_update, update_fields=update_fields) File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save_base
  6. result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw) File "/usr/local/lib/python2.6/dist-packages/django/db/models/manager.py" in _insert
  7. return insert_query(self.model, objs, fields, **kwargs) File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py" in insert_query
  8. return query.get_compiler(using=using).execute_sql(return_id) File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py" in execute_sql
  9. cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/util.py" in execute
  10. return self.cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/mysql/base.py" in execute
  11. return self.cursor.execute(query, args) File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in execute
  12. if not self._defer_warnings: self._warning_check() File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in _warning_check
  13. warn(w[-1], self.Warning, 3)

Exception Type: Warning at /mozbuzz/mention/create Exception Value: Incorrect string value: '\xC5\x82a pu...' for column 'text' at row 1

sebasmagri commented 11 years ago

I'm on a trip right now and I'm not able to check this atm. @nukeador, would we disable debug? I think this have worked before.

Sebastián Ramírez Magrí On Jul 3, 2013 1:20 PM, "RickieES" notifications@github.com wrote:

While trying to create a report, and once all the fields were filled and were ready to be added to the DB, just after clicking Submit button, i got this error message (despite of which the record has been correctly created and is visible on the web):

Environment:

Request Method: POST Request URL: https://mozilla-hispano.org/mozbuzz/mention/create

Django Version: 1.5.1 Python Version: 2.6.5 Installed Applications: ('django.contrib.auth', 'django_browserid', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.markup', 'south', 'buzz') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  2. return view_func(request, _args, *_kwargs) File "../mozbuzz/buzz/utils.py" in inner
  3. result = view(request, _args, *_kwargs) File "/var/lib/mozbuzz/buzz/views.py" in mention
  4. instance.save() File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save
  5. force_update=force_update, update_fields=update_fields) File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save_base
  6. result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw) File "/usr/local/lib/python2.6/dist-packages/django/db/models/manager.py" in _insert
  7. return insert_query(self.model, objs, fields, **kwargs) File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py" in insert_query
  8. return query.get_compiler(using=using).execute_sql(return_id) File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py" in execute_sql
  9. cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/util.py" in execute
  10. return self.cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/mysql/base.py" in execute
  11. return self.cursor.execute(query, args) File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in execute
  12. if not self._defer_warnings: self._warning_check() File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in _warning_check
  13. warn(w[-1], self.Warning, 3)

Exception Type: Warning at /mozbuzz/mention/create Exception Value: Incorrect string value: '\xC5\x82a pu...' for column 'text' at row 1

— Reply to this email directly or view it on GitHubhttps://github.com/mozillahispano/mozbuzz/issues/44 .

dvdbng commented 11 years ago

This is a duplicate, I'm on my phone but there is already an issue about encoding In reports On 3 Jul 2013 19:50, "RickieES" notifications@github.com wrote:

While trying to create a report, and once all the fields were filled and were ready to be added to the DB, just after clicking Submit button, i got this error message (despite of which the record has been correctly created and is visible on the web):

Environment:

Request Method: POST Request URL: https://mozilla-hispano.org/mozbuzz/mention/create

Django Version: 1.5.1 Python Version: 2.6.5 Installed Applications: ('django.contrib.auth', 'django_browserid', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.markup', 'south', 'buzz') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  2. return view_func(request, _args, *_kwargs) File "../mozbuzz/buzz/utils.py" in inner
  3. result = view(request, _args, *_kwargs) File "/var/lib/mozbuzz/buzz/views.py" in mention
  4. instance.save() File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save
  5. force_update=force_update, update_fields=update_fields) File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py" in save_base
  6. result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw) File "/usr/local/lib/python2.6/dist-packages/django/db/models/manager.py" in _insert
  7. return insert_query(self.model, objs, fields, **kwargs) File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py" in insert_query
  8. return query.get_compiler(using=using).execute_sql(return_id) File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py" in execute_sql
  9. cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/util.py" in execute
  10. return self.cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/mysql/base.py" in execute
  11. return self.cursor.execute(query, args) File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in execute
  12. if not self._defer_warnings: self._warning_check() File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py" in _warning_check
  13. warn(w[-1], self.Warning, 3)

Exception Type: Warning at /mozbuzz/mention/create Exception Value: Incorrect string value: '\xC5\x82a pu...' for column 'text' at row 1

— Reply to this email directly or view it on GitHubhttps://github.com/mozillahispano/mozbuzz/issues/44 .

nukeador commented 11 years ago

Dupe #23