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
python(5211,0x700003a92000) malloc: *** mach_vm_map(size=745667699670638592) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Internal Server Error: /apple-touch-icon-precomposed.png
Traceback (most recent call last):
File "/Users/amitu/.pyenv/versions/acko/lib/python3.5/site-packages/encrypted_id/__init__.py", line 79, in decode
if crc != binascii.crc32(bytes(the_id)) & 0xffffffff:
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/amitu/.pyenv/versions/acko/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/Users/amitu/.pyenv/versions/acko/lib/python3.5/site-packages/django/core/handlers/base.py", line 244, in _legacy_get_response
response = middleware_method(request)
File "/Users/amitu/acko/claimator/src/dj/acko/middlewares.py", line 68, in process_request
tracker = Tracker.objects.get_by_ekey(tracker_id)
File "/Users/amitu/.pyenv/versions/acko/lib/python3.5/site-packages/encrypted_id/models.py", line 18, in get_by_ekey
return self.get(id=decode(ekey, get_model_sub_key(self.model)), **kw)
File "/Users/amitu/.pyenv/versions/acko/lib/python3.5/site-packages/encrypted_id/__init__.py", line 82, in decode
raise EncryptedIDDecodeError()
encrypted_id.EncryptedIDDecodeError: Failed to decrypt, invalid input.
I think it is because of the binascii.crc32(bytes(the_id)) line. This allocates the_id number of bytes, instead of converting the_id to bytes (which is what I wanted to do).
Yo @jatinderjit! Have a look when you get time.
The text was updated successfully, but these errors were encountered: