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

TypeError: Unicode-objects must be encoded before hashing #1593

Closed
ukanga opened this issue Mar 28, 2019 · 0 comments
Closed

TypeError: Unicode-objects must be encoded before hashing #1593

ukanga opened this issue Mar 28, 2019 · 0 comments
Assignees

Comments

@ukanga
Copy link
Member

ukanga commented Mar 28, 2019

Happens when publishing with form builder a text XLSForm under python 3 environment and using boto3 with S3 as the storage backend.

https://sentry.onalabs.org/ona/ona-api-stage/issues/72466/

TypeError: Unicode-objects must be encoded before hashing
(16 additional frame(s) were not displayed)
...
  File "onadata/libs/utils/logger_tools.py", line 479, in publish_form
    return callback()
  File "onadata/apps/api/tools.py", line 369, in set_form
    return form.publish(project.organization, created_by=request.user)
  File "onadata/apps/main/forms.py", line 360, in publish
    ContentFile(csv_data))

TypeError: Unicode-objects must be encoded before hashing

Aha! Link: https://ona.aha.io/features/PROD-261

@ukanga ukanga self-assigned this Mar 28, 2019
@ukanga ukanga added this to the Week 13 - 14 (2019) milestone Mar 28, 2019
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