Flagsmith / Flagsmith/flagsmith

Retrieving records via /api/v1/audit/ with a master API key results in error

Open
#6,583 1 comment 0 reactions 0 assignees View on GitHub
api
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Sentry Issue: [FLAGSMITH-API-5GP](https://flagsmith.sentry.io/issues/7211559896/?referrer=github_integration)

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

TypeError: Field 'id' expected a number but got .
(19 additional frame(s) were not displayed)
...
File "audit/views.py", line 56, in get_queryset
queryset = AuditLog.objects.filter(q).select_related(
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.