You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'NoneType' object has no attribute 'startswith'
(1 additional frame(s) were not displayed)
...
File "django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "newrelic/hooks/framework_django.py", line 563, in wrapper
return wrapped(*args, **kwargs)
File "django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "posthog/api/decide.py", line 92, in get_decide
token, is_test_environment = _clean_token(token)
File "posthog/api/capture.py", line 103, in _clean_token
is_test_environment = token.startswith("test_")
The text was updated successfully, but these errors were encountered:
cc @buwilliams this seems to be caused by a recent change to accept test tokens. Given this affects /decide endpoint, errors here could lead to data not being captured -> worth prioritizing!
Sentry Issue: POSTHOG-2V8
The text was updated successfully, but these errors were encountered: