benedwards44 / packagebuilder

Django + Heroku application for building a package.xml of your Salesforce Org
https://packagebuilder.herokuapp.com
MIT License
104 stars 81 forks source link

Python error generating package.xml #37

Closed d8elessar closed 3 years ago

d8elessar commented 3 years ago

Hi, Very recently (since August 2021), I started to get a Python error everytime I try to generate a package.xml from a Sandbox (Summer 21), using the Component Option "Exclude Managed". This happen when I use the website, I didn't try any other options nor the API. And this started happening for sandboxes of 2 completely different orgs, same error is returned for both.

This is the returned error: "There was an error processing your request: Traceback (most recent call last): File "/app/buildpackage/tasks.py", line 199, in query_components_from_org component_record.save() File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/base.py", line 545, in save force_update=force_update, update_fields=update_fields) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/base.py", line 573, in save_base updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/base.py", line 654, in _save_table result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/base.py", line 687, in _do_insert using=using, raw=raw) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/manager.py", line 232, in _insert return insert_query(self.model, objs, fields, **kwargs) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/query.py", line 1514, in insert_query return query.get_compiler(using=using).execute_sql(return_id) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 903, in execute_sql cursor.execute(sql, params) File "/app/.heroku/python/lib/python2.7/site-packages/django/db/backends/util.py", line 78, in execute logger.debug('(%.3f) %s; args=%s' % (duration, sql, params), UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 24: ordinal not in range(128)

Please return to the home page and try again."

Can anyone help?

d8elessar commented 3 years ago

It is working now, no idea what happened.