2012-02-26 31 views

回答

3

client_idKey,create_channel(..)需要一个字符串。

这里是what docs sayInvalidChannelClientIdError

The specified Client ID is malformed. Client IDs must be UTF-8 or ASCII strings 
and should be less than 64 characters. 

你可能使用key.name()如果是由你生成你的用户ID和足够独特。如果用户标识由数据存储生成,那么它是一个短整数,如1001,2001等,并且不够唯一。

+0

谢谢。看起来我可以做'channel.create_channel(str(client_id))'。 – 2012-02-26 19:47:02

+0

只要确保您提供的'channel_id'足够独特。 – 2012-02-26 19:52:34

相关问题