Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于客服创建会话 503 Server Error: Service Unavailable #61

Closed
zhangwen9229 opened this issue Jun 4, 2015 · 12 comments
Closed

Comments

@zhangwen9229
Copy link

Uploading 20150604115341.png…

customservice.create_session(self.msg.source, u"test@test", text=None)

@messense
Copy link
Member

messense commented Jun 4, 2015

5xx 的错误码一般都是服务器出错,应该是微信服务器的问题吧。

发自我的 iPhone

在 2015年6月4日,11:56,zhangwen9229 notifications@github.com 写道:

Uploading 20150604115341.png…


Reply to this email directly or view it on GitHub.

@zhangwen9229
Copy link
Author

那我下午再试试。 就是再点击菜单时,触发 创建会话。 就这样报错了。 截图暂时传不上。

@zhangwen9229
Copy link
Author

20150604115341

@zhangwen9229
Copy link
Author

@messense 手动创建会话不行
return (TransferCustomerServiceReply(message=self.msg)).render()
直接转发多客服 可以
但用户点击自定义菜单【人工服务】 后端 直接 创建会话,不可行吗?

@messense
Copy link
Member

messense commented Jun 4, 2015

@zhangwen9229 你用的是哪个版本的 wechatpy?我看截图里面地址有些问题,不应该有 /cgi-bin/ 的。

@zhangwen9229
Copy link
Author

上午升级了 最新版本 0.8.7 @messense
class WeChatClient(BaseWeChatClient):
"""
微信 API 操作类
通过这个类可以操作微信 API,发送主动消息、群发消息和创建自定义菜单等。
"""

API_BASE_URL = 'https://api.weixin.qq.com/cgi-bin/'

@messense
Copy link
Member

messense commented Jun 4, 2015

@zhangwen9229 Sorry. 上次多客服相关接口的修改还没发布新版本,你安装 develop 分支的代码试下。

@zhangwen9229
Copy link
Author

@messense https://github.com/messense/wechatpy/blob/master/wechatpy/client/api/customservice.py#L137
你查看下这块, 代码上写的地址应该是没错。 我已安装develop代码,等会再测试试试

@zhangwen9229
Copy link
Author

@messense 我刚测试完, develop代码可以使用
customservice.create_session(self.msg.source, u"test@test", text=None)

@messense
Copy link
Member

messense commented Jun 4, 2015

@zhangwen9229 Thanks. 发布了新版本到 PyPi 了。

@zhangwen9229
Copy link
Author

@messense You are welcome. 我等会升级下最新版本

@zhangwen9229
Copy link
Author

@messense 创建会话测试正常。 可以关闭了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants