I do the following:
user = User()
...
user.put()
client_id = user.key() # value like agpkZXZ-Y3Njb3JlcgoLEgRVc2VyGAkM
token = channel.create_channel(client_id)
and I am getting InvalidChannelClientIdError.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
client_idis aKey,create_channel(..)expects a string.Here is what docs say about
InvalidChannelClientIdError:You could potentially use
key.name()if your user id is generated by you and is sufficiently unique. If User id is generated by Datastore, then it is a short integer number like 1001, 2001, etc, and is not sufficiently unique.