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

get_jssign_package 报错 #95

Open
imruiyeah opened this issue Jul 5, 2016 · 4 comments
Open

get_jssign_package 报错 #95

imruiyeah opened this issue Jul 5, 2016 · 4 comments

Comments

@imruiyeah
Copy link

$client.get_jssign_package(request.original_url) 有时候会报错,但不是每次都会。

undefined method `+' for nil:NilClass

报错的设备

  • HTTP_USER_AGENT : Mozilla/5.0 (Linux; Android 5.1.1; SM-A8000 Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile MQQBrowser/6.2 TBS/036524 Safari/537.36 MicroMessenger/6.3.13.49_r4080b63.740 NetType/WIFI Language/zh_CN
  • HTTP_USER_AGENT : Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69 MicroMessenger/6.3.19 NetType/WIFI Language/zh_CN
@lanrion
Copy link
Owner

lanrion commented Jul 15, 2016

这个错误信息没有什么用,要贴详细的。

@wikimo
Copy link
Collaborator

wikimo commented Jul 17, 2016

建议请求url logger记录下来

@lanrion lanrion closed this as completed Jul 19, 2016
@lanrion lanrion reopened this Jul 19, 2016
@ryan715
Copy link

ryan715 commented Jun 6, 2017

今天突然发现 我的应用也报了这个错误。
ActionView::Template::Error (undefined method `get_jssign_package' for nil:NilClass):

I, [2017-06-06T16:32:35.090117 #27713]  INFO -- : Completed 500 Internal Server Error in 153ms (ActiveRecord: 0.0ms)
F, [2017-06-06T16:32:35.102833 #27713] FATAL -- :
F, [2017-06-06T16:32:35.102909 #27713] FATAL -- : ActionView::Template::Error (undefined method `get_jssign_package' for nil:NilClass):
F, [2017-06-06T16:32:35.103054 #27713] FATAL -- :     1: <%
    2:   sign_package = $wechat_client.get_jssign_package(request.url)
    3: %>
    4: <%= javascript_include_tag '//res.wx.qq.com/open/js/jweixin-1.0.0.js' %>
    5:
F, [2017-06-06T16:32:35.103102 #27713] FATAL -- :
F, [2017-06-06T16:32:35.103133 #27713] FATAL -- : app/views/layouts/_wechat_js.html.erb:2:in `_app_views_layouts__wechat_js_html_erb___4296680676340373693_69896471721040'

@lanrion
Copy link
Owner

lanrion commented Jun 6, 2017

$wechat_client

这个是空。。

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

No branches or pull requests

4 participants