Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: weakly-referenced object no longer exists #86

Closed
fafhrd91 opened this issue Jun 27, 2014 · 11 comments
Closed

ReferenceError: weakly-referenced object no longer exists #86

fafhrd91 opened this issue Jun 27, 2014 · 11 comments
Labels

Comments

@fafhrd91
Copy link
Member

@asvetlov could you look at this exception, ClientReponse.del?

ERROR [asyncio] Exception in default exception handler
Traceback (most recent call last):
 File "/usr/lib/python3.4/asyncio/base_events.py", line 719, in call_exception_handler
   self.default_exception_handler(context)
 File "/usr/lib/python3.4/asyncio/base_events.py", line 696, in default_exception_handler
   log_lines.append('{}: {!r}'.format(key, context[key]))
 File "/usr/lib/python3.4/asyncio/tasks.py", line 164, in __repr__
   res = super().__repr__()
 File "/usr/lib/python3.4/asyncio/futures.py", line 157, in __repr__
   res += '<exception={!r}>'.format(self._exception)
 File "/opt/files/lib/python3.4/site-packages/aiohttp/client.py", line 576, in __repr__
   print(self.headers, file=out)
 File "/opt/files/lib/python3.4/site-packages/aiohttp/multidict.py", line 88, in __repr__
   return '<{} {!r}>'.format(self.__class__.__name__, self._items)
 File "/usr/lib/python3.4/reprlib.py", line 24, in wrapper
   result = user_function(self)
 File "/usr/lib/python3.4/collections/__init__.py", line 198, in __repr__
   return '%s(%r)' % (self.__class__.__name__, list(self.items()))
 File "/usr/lib/python3.4/_collections_abc.py", line 484, in __iter__
   for key in self._mapping:
 File "/usr/lib/python3.4/collections/__init__.py", line 87, in __iter__
   curr = root.next
ReferenceError: weakly-referenced object no longer exists
@fafhrd91
Copy link
Member Author

@asvetlov i saw this several times in production system.

@asvetlov
Copy link
Member

@fafhrd91 I'll take a look.

@asvetlov
Copy link
Member

asvetlov commented Jul 1, 2014

@fafhrd91 Hmm, do you store weak references to ClientResponse in ordered dicts?
Or, maybe, do push response/connector/connection into http headers multidict?

@fafhrd91
Copy link
Member Author

fafhrd91 commented Jul 1, 2014

no, i don't. also response's headers object is immutable.

@fafhrd91
Copy link
Member Author

fafhrd91 commented Jul 1, 2014

i'll review my code

@asvetlov
Copy link
Member

@fafhrd91 can we close the issue?

@fafhrd91
Copy link
Member Author

i still see this problem in production

On Oct 16, 2014, at 5:51 PM, Andrew Svetlov notifications@github.com wrote:

@fafhrd91 https://github.com/fafhrd91 can we close the issue?


Reply to this email directly or view it on GitHub #86 (comment).

@asvetlov
Copy link
Member

Hmm. Ok. Let's investigate it tomorrow.

@fafhrd91
Copy link
Member Author

seems problem is resolved with new asyncio

@asvetlov
Copy link
Member

Sounds good

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants