Re: Sometimes get "incorrect padding error"- new bug in django 3.1?

2020-08-18 Thread Matthew Hegarty
py", > line 220, in _get_session > self._session_cache = self.load() > File > "/usr/local/lib/python3.8/site-packages/django/contrib/sessions/backends/db.py", > line 44, in load > return self.decode(s.session_data) if s else {} > File > "/u

Re: Sometimes get "incorrect padding error"- new bug in django 3.1?

2020-08-17 Thread Matthew Hegarty
"/usr/local/lib/python3.8/site-packages/django/contrib/sessions/backends/base.py", line 126, in _legacy_decode encoded_data = base64.b64decode(session_data.encode('ascii')) File "/usr/local/lib/python3.8/base64.py", line 87, in b64decode return binascii.a2b_base64(s) b

Sometimes get "incorrect padding error"- new bug in django 3.1?

2020-08-10 Thread Diptesh Choudhuri
s else {} File "/home/ignisda/.cache/pypoetry/virtualenvs/backend-3DENPaHW-py3.8/lib/python3.8/site-packages/django/contrib/sessions/backends/base.py" , line 122, in decode return self._legacy_decode(session_data) File "/home/ignisda/.cache/pypoetry/virtualenvs/backend-3DENPaHW-

Odd problem with Incorrect padding error in Oauth2 flow using Django >=2.0

2018-06-10 Thread Malcolm MacKinnon
Using python 3.55 and django 1.10 in my Oauth2 flow (with django_openid_auth in my installed apps), my code executes without any errors. But in a python 3.55 and django >=2.0 environment, I get the following error: Error at /openid/login/ Incorrect padding I've spent two days searc

Re: Error decoding password stored in mysql : binascii.Error: Incorrect padding

2018-03-14 Thread Cictani
Hi, try removing the \\n at the end it seems to be a bug or maybe while you exported it new lines were added and now you have these new lines in your password base64 strings. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Error decoding password stored in mysql : binascii.Error: Incorrect padding

2018-03-14 Thread uday bhaskar
Hello Everyone. I am trying to decode previously encoded and stored in mysql but ending up with binascii.Error: Incorrect padding error. I have been using sqllite for a while with same functionality used to work . When I changed to mysql it broke things . Any help with it is much appreciated

incorrect padding

2011-07-23 Thread NISA BALAKRISHNAN
TypeError at /waybill/deserialize/ Incorrect padding Request Method: POST Request URL:http://127.0.0.1:8000/waybill/deserialize/ Django Version: 1.3 Exception Type: TypeError Exception Value: Incorrect padding Exception Location: /Library/Frameworks