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

企业微信回调url校验失败 #4

Closed
kevinpersist opened this issue Nov 15, 2017 · 5 comments
Closed

企业微信回调url校验失败 #4

kevinpersist opened this issue Nov 15, 2017 · 5 comments

Comments

@kevinpersist
Copy link

kevinpersist commented Nov 15, 2017

image

日志:

{"time":"2017-11-15T17:41:30.755375937+08:00","level":"ERROR","prefix":"echo","file":"echo.go","line":"283","message":"code=404, message=Not Found"}

{"time":"2017-11-15T17:41:30.755447609+08:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:4567","method":"GET","uri":"/auth/?msg_signature=4219a3a430010ed0ab4b1b863d20d7608b312ca2&timestamp=1510738890&nonce=824695764&echostr=Cw1WzELKeUI7IxjeJ5EkrBVBlKX0fXkMRzD45KsEGbntixvliJgJ3RjxZ%2BeIXL4MQnyCSGImhiG%2B0radX51h8A%3D%3D","status":404, "latency":156425,"latency_human":"156.425µs","bytes_in":0,"bytes_out":23}

@yanjunhui
Copy link
Owner

两个问题啊 看不太明白你的请求数据

  1. 远程IP为什么是127.0.0.1
  2. 端口是4567,但是微信后台设置的域名并没有端口

你是在本机设置代理了吗

@kevinpersist
Copy link
Author

感谢解答,是设置了代理,去掉代理也试过,还是报错

image

{"time":"2017-11-15T18:19:09.409777105+08:00","level":"ERROR","prefix":"echo","file":"echo.go","line":"283","message":"code=404, message=Not Found"}
{"time":"2017-11-15T18:19:09.409847562+08:00","id":"","remote_ip":"140.207.54.80","host":"120.13.10.63:4567","method":"GET","uri":"/auth/?msg_signature=bee5e80ceac34493893a7544c1f2ab2533be8c77&timestamp=1510741149&nonce=783516927&echostr=9i17d%2F4YYsEDOJTY4KF5WNStSRo5vtiCfnK%2BdbfuQyma3eeXZQRwABvfqSzmCRoUctHymw8NgKeLUJK2L1Rdlg%3D%3D","status":404, "latency":191964,"latency_human":"191.964µs","bytes_in":0,"bytes_out":23}

@yanjunhui
Copy link
Owner

yanjunhui commented Nov 15, 2017

那就检查配置文件吧 看 weixin下面的四个参数设置值是不是跟微信企业号后台设置的一致
设置方法 参见使用文档

@yanjunhui
Copy link
Owner

代码我重新完整测试了一遍 而且也有很多人在使用 并没有发现验证接口存在bug
另外 其实不用设置这个接受信息 也是可以正常发送报警的

@kevinpersist
Copy link
Author

查到问题了,url后面多了个"/" ,多谢

image

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

2 participants