question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"AttributeError: '__proxy__' object has no attribute 'created'" after 0.2.2 update

See original GitHub issue

After 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mongkokcommented, Oct 19, 2019

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.

2reactions
coltonbhcommented, Oct 7, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found