Skip to content

TypeError: Field 'evaluation_count' expected a number but got {'abc': {'xyz:bcd': 2}}. #6905

@sentry

Description

@sentry

Sentry Issue: FLAGSMITH-API-5DM

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'dict'
  File "django/db/models/fields/__init__.py", line 2053, in get_prep_value
    return int(value)

TypeError: Field 'evaluation_count' expected a number but got {{'abc': {'xyz:bcd': 2}}
(14 additional frame(s) were not displayed)
...
  File "app_analytics/tasks.py", line 104, in track_feature_evaluations_by_environment
    FeatureEvaluationRaw.objects.bulk_create(

Failed to execute task 'tasks.track_feature_evaluations_by_environment', with id 9054576. Exception: Field 'evaluation_count' expected a number but got {'abc': {'xyz:bcd': 2}}.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions