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
Hello,
I got the following error during the registration procedure.
u.register(username, password)
File "/site-packages/pycognito/init.py", line 350, in register
self._add_secret_hash(params, "SecretHash")
File "/site-packages/pycognito/init.py", line 695, in _add_secret_hash
secret_hash = AWSSRP.get_secret_hash(
File "site-packages/pycognito/aws_srp.py", line 201, in get_secret_hash
message = bytearray(username + client_id, "utf-8")
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
The username has None value in get_secret_hash because the attribute passed via registrer function is not updating the self.username .
To use the register procedure , i am passing the attribute username to the Cognito object, but this is not described in the documentation.
The text was updated successfully, but these errors were encountered:
There are really quite a few of these "var vs self.var" gotchas, @pvizeli. Is it worth re-evaluating where these variables are passed in vs consulting self and trying the normalize the way the library deals with them?
There are really quite a few of these "var vs self.var" gotchas, @pvizeli. Is it worth re-evaluating where these variables are passed in vs consulting self and trying the normalize the way the library deals with them?
Hello,
I got the following error during the registration procedure.
The username has None value in get_secret_hash because the attribute passed via registrer function is not updating the self.username .
To use the register procedure , i am passing the attribute username to the Cognito object, but this is not described in the documentation.
The text was updated successfully, but these errors were encountered: