1. 15 Jul, 2020 1 commit
  2. 13 Jul, 2020 1 commit
    • ∞'s avatar
      Fixed the sad situation with json.dumps · eea85537
      authored
      Fixing:
      
      backend_1   | Running migrations:
      backend_1   | Traceback (most recent call last):
      backend_1   |   File "./manage.py", line 21, in <module>
      backend_1   |     main()
      backend_1   |   File "./manage.py", line 17, in main
      backend_1   |     execute_from_command_line(sys.argv)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
      backend_1   |     utility.execute()
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
      backend_1   |     self.fetch_command(subcommand).run_from_argv(self.argv)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
      backend_1   |     self.execute(*args, **cmd_options)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
      backend_1   |     output = self.handle(*args, **options)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
      backend_1   |     res = handle_func(*args, **kwargs)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 231, in handle
      backend_1   |     post_migrate_state = executor.migrate(
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
      backend_1   |     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
      backend_1   |     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
      backend_1   |     state = migration.apply(state, schema_editor)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/migrations/migration.py", line 124, in apply
      backend_1   |     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
      backend_1   |     self.code(from_state.apps, schema_editor)
      backend_1   |   File "/usr/lib/python3.8/site-packages/djcall/migrations/0004_caller_kwargs_from_pickle_to_json.py", line 11, in convert_kwargs
      backend_1   |     caller.save()
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/base.py", line 745, in save
      backend_1   |     self.save_base(using=using, force_insert=force_insert,
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/base.py", line 782, in save_base
      backend_1   |     updated = self._save_table(
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/base.py", line 864, in _save_table
      backend_1   |     updated = self._do_update(base_qs, using, pk_val, values, update_fields,
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/base.py", line 917, in _do_update
      backend_1   |     return filtered._update(values) > 0
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/query.py", line 771, in _update
      backend_1   |     return query.get_compiler(self.db).execute_sql(CURSOR)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1500, in execute_sql
      backend_1   |     cursor = super().execute_sql(result_type)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1152, in execute_sql
      backend_1   |     cursor.execute(sql, params)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
      backend_1   |     return super().execute(sql, params)
      backend_1   |   File "/usr/lib/python3.8/site-packages/sentry_sdk/integrations/django/__init__.py", line 487, in execute
      backend_1   |     return real_execute(self, sql, params)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
      backend_1   |     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
      backend_1   |     return executor(sql, params, many, context)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
      backend_1   |     return self.cursor.execute(sql, params)
      backend_1   |   File "/usr/lib/python3.8/site-packages/psycopg2/_json.py", line 79, in getquoted
      backend_1   |     s = self.dumps(self.adapted)
      backend_1   |   File "/usr/lib/python3.8/site-packages/django/contrib/postgres/fields/jsonb.py", line 27, in dumps
      backend_1   |     return json.dumps(obj, **options)
      backend_1   |   File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
      backend_1   |     return _default_encoder.encode(obj)
      backend_1   |   File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
      backend_1   |     chunks = self.iterencode(o, _one_shot=True)
      backend_1   |   File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
      backend_1   |     return _iterencode(o, 0)
      backend_1   |   File "/usr/lib/python3.8/json/encoder.py", line 179, in default
      backend_1   |     raise TypeError(f'Object of type {o.__class__.__name__} '
      backend_1   | TypeError: Object of type UUID is not JSON serializable
      backend_1   | Sentry is attempting to send 0 pending error messages
      eea85537
  3. 27 May, 2020 2 commits
  4. 19 May, 2020 8 commits
  5. 14 May, 2020 1 commit
  6. 30 Apr, 2020 8 commits
  7. 29 Apr, 2020 6 commits
  8. 28 Apr, 2020 2 commits
  9. 26 Apr, 2020 1 commit
  10. 14 Apr, 2020 1 commit
  11. 30 Mar, 2020 3 commits
  12. 26 Mar, 2020 2 commits
  13. 29 Feb, 2020 4 commits