"AttributeError: '__proxy__' object has no attribute 'created'" after 0.2.2 update
See original GitHub issueAfter updating to 0.2.2, I’m getting the following Traceback:
Traceback (most recent call last):
File "/.../python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/.../python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File ".../python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File ".../python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File ".../python3.7/site-packages/graphql_jwt/decorators.py", line 136, in wrapped_view
expires = refresh_token.created +\
AttributeError: '__proxy__' object has no attribute 'created
I’ve added JWT_REFRESH_EXPIRED_HANDLER
to settings, but still same error.
Also, after adding the revoke_refresh_token
recommendation, the token is getting revoked, as subsequent calls (after getting above Traceback error) will fail for Invalid refresh token
…
Reverting back to 0.2.1 works as expected.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to fix " '__proxy__' object has no attribute 'get' " when ...
The changes that you have made in get_success_url and get_object methods return an 404 error when I run. I kept the reverse_lazy in...
Read more >Community Updates — Requests 2.28.1 documentation
Fixed an issue encountered by some Requests plugins where constructing a Response object would cause Response.content to raise an AttributeError .
Read more >AttributeError: 'EntryPoint' object has no attribute '_key', stops ...
Hi, I am testing computations on the Google Cloud Deployment (Server-options: 16 CPUs), and want to ask for help with interpreting the error ......
Read more >Cannot import nengo_dl on ms azure - Nengo forum
_conform_to_reference_input 160 161 def _conform_to_reference_input(self, tensor, ref_input): AttributeError: type object 'Network' has no ...
Read more >'tuple' object has no attribute 'id' - You.com | The AI Search ...
get_or_create returns a tuple in the form of (instance, created) where created is, obviously, a boolean telling you whether it found the object...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m sorry guys, I am just overloaded with work and I haven’t been able to read it before. The PR 135 is fixed and merged.
Thank you @coltonbh for the PR.
Hi @mongkok. PR 135 didn’t seem to fix the problem for me so I added another PR that addresses just the small bug that would make the jwt_cookie decorator function as expected PR 140