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

Error while trying to create a report #44

Closed
RickieES opened this issue Jul 3, 2013 · 3 comments
Closed

Error while trying to create a report #44

RickieES opened this issue Jul 3, 2013 · 3 comments

Comments

@RickieES
Copy link

RickieES commented Jul 3, 2013

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
Copy link
Member

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//issues/44
.

@dvdbng
Copy link
Member

dvdbng commented Jul 3, 2013

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//issues/44
.

@nukeador
Copy link
Member

nukeador commented Jul 3, 2013

Dupe #23

@nukeador nukeador closed this as completed Jul 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants