• 请不要在回答技术问题时复制粘贴 AI 生成的内容
awanganddong
V2EX  ›  程序员

给公众号发消息,公众号提示提供的服务出现故障,请稍后再试

  •  
  •   awanganddong · Oct 25, 2020 · 2259 views
    This topic created in 2037 days ago, the information mentioned may be changed or developed.

    1.查看 nginx 日志可以看到有请求访问 2.但是在微信回调接口打印日志没有任何输出。 3.我用 postman 访问该接口可以打印日志。

    微信开放平台配置的消息回调地址是 80 端口 后端接口支持 80 和 443

    现在不知道该怎么定位问题, 想要个思路

    7 replies    2020-10-26 14:55:13 +08:00
    vone
        1
    vone  
       Oct 25, 2020
    frp 转发到开发机上,下断点调试。
    opengps
        2
    opengps  
       Oct 25, 2020
    可能是你服务器距离微信服务器之间的延迟较大,收发超时
    awanganddong
        3
    awanganddong  
    OP
       Oct 25, 2020
    刚刚查看微信有报警接口,正好可以根据该接口查看问题
    lihongming
        4
    lihongming  
       Oct 26, 2020 via iPhone
    看着像是延迟过大,可能是你的逻辑太复杂,处理时间太长,也可能微信服务器与你的服务器之间不通畅。

    先不要做复杂处理,直接回复个 hello world 试试看能否收到。
    shingle
        5
    shingle  
       Oct 26, 2020 via iPhone
    微信开发者后台可以开启监控警报的,很容易排查问题
    awanganddong
        6
    awanganddong  
    OP
       Oct 26, 2020
    找到报警群,提示公众号账号违反相关规定,加入失败。不过问题已经定位到。是接口那被误加了中间件,所以中间件报错
    awanganddong
        7
    awanganddong  
    OP
       Oct 26, 2020
    另外我这边属于第三方开放平台,会接入多个公众号,就像这种情况,遇到接口异常这种情况,怎么设计报警接口会比较好
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 06:51 · PVG 14:51 · LAX 23:51 · JFK 02:51
    ♥ Do have faith in what you're doing.