如何修复响应 CEA – failed Result-Code AVP: 5012?

huangapple go评论127阅读模式
英文:

How to fix response CEA - failed Result-Code AVP: 5012?

问题

要使用直径协议,我使用了https://github.com/fiorix/go-diameter这个库。当我尝试向直径服务器发送CER(Capabilities-Exchange-Request)时,我收到了一个failed Result-Code AVP: 5012的错误。我认为这是未指定的原因。我无法访问服务器日志。如何在客户端解决这个错误?我应该从哪里开始诊断?

英文:

To work with the diameter protocol, I use the library https://github.com/fiorix/go-diameter.
When I try to send CER (Capabilities-Exchange-Request) to the diameter-server, I get a failed Result-Code AVP: 5012.
I think these are unspecified reasons. I don't have access to the server logs.
How to solve this error on the client side ?
Where do I start with the diagnostics?

答案1

得分: 1

我对这个库不太熟悉,但你可以在这里找到所有的结果代码:result-codes

5012的含义是:

DIAMETER_UNABLE_TO_COMPLY 5012
当请求因未指定的原因被拒绝时返回此错误。

针对你的情况,有两个选项:

  1. 你的CER可能存在问题,所以你尝试连接的Diameter节点会发送带有结果代码5012的CEA回复。
  2. 你尝试使用的开源库可能不允许你发送CER,并以5012作为对你的CER的响应。

解决问题的方法:

  1. 如果你的CER已经发送到网络中,请使用Wireshark/tcpdump进行抓包,并确保你收到了CEA。你可以查看你的CER,并检查其中的问题(你也可以将其发送到这里)。也许你的CER不符合RFC 3588/6733的规范?
  2. 如果该库不允许你发送CER,请查看库的日志,看看是否有任何错误。如果你看到错误信息,可以咨询编写该库的人。
英文:

Im not familiar with this library, however you can find all result-codes here:
result-codes

5012 means:

> DIAMETER_UNABLE_TO_COMPLY 5012
This error is returned when a request is rejected for unspecified
reasons.

There are 2 options to your situation:

  1. There is some problem with your CER, so the Diameter node you are trying to reach is sending you back CEA with result-code 5012.
  2. The open source library you are trying to use do not let you send the CER and gives you a message with 5012 as a response to your CER.

To solve the issue:

  1. If your CER went to the network take a capture using wireshark/tcpdump and make sure you received CEA. You can look at your CER and check what is wrong with it (you can also send it here). Maybe your CER is not according to RFC 3588/6733?
  2. If the library do not let you send the CER look at the library log and see if you can spot any error. If you do see an error you can consult the guy who wrote the library.

huangapple
  • 本文由 发表于 2022年1月12日 14:34:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/70677269.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定