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
create() takes 1 positional argument but 3 were given
home/aiyom/PycharmProjects/recommerce-back/market/venv/lib/python3.9/site-packages/knox/views.py, line 65, in post
return Response(
{"error": "Maximum amount of tokens allowed per user exceeded."},
status=status.HTTP_403_FORBIDDEN
)
token_ttl = self.get_token_ttl()
print(token_ttl)
print(request.user)
instance, token = AuthToken.objects.create(request.user, token_ttl) …
print(instance, token)
user_logged_in.send(sender=request.user.class,
request=request, user=request.user)
data = self.get_post_response_data(request, token, instance)
return Response(data)
The text was updated successfully, but these errors were encountered:
create() takes 1 positional argument but 3 were given
home/aiyom/PycharmProjects/recommerce-back/market/venv/lib/python3.9/site-packages/knox/views.py, line 65, in post
return Response(
{"error": "Maximum amount of tokens allowed per user exceeded."},
status=status.HTTP_403_FORBIDDEN
)
token_ttl = self.get_token_ttl()
print(token_ttl)
print(request.user)
instance, token = AuthToken.objects.create(request.user, token_ttl) …
print(instance, token)
user_logged_in.send(sender=request.user.class,
request=request, user=request.user)
data = self.get_post_response_data(request, token, instance)
return Response(data)
The text was updated successfully, but these errors were encountered: