duanpei8853
duanpei8853
2018-10-30 06:48

API调用一个接一个出现502错误

  • api
已采纳

I'm experiencing kind of weird error, I'm calling API (which written in golang) to get access token, that API returns the correct value for one time but if I send that API call again it returns 502 error code, then if I call that API once again it will return the correct value. this happens one after the other.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • duanliusong6395 duanliusong6395 3年前

    Looks like issue happened because of the load balancing. Normally round-robin routing policy is used in load balancing. For example, if you have two servers one request goes for the first one and other one goes for the other server. So for your question, the first request is going for the working server and other is going for the non-working server. Check whether your other servers are working properly.

    点赞 评论 复制链接分享
  • doukanwen4114 doukanwen4114 3年前

    You may need to check the circulation of IP data transmission between different computers under its control.

    点赞 评论 复制链接分享

为你推荐