下面是场景。EA = 边缘代理
- EA1 创建一个
Connectionless Proof Request
- EA2 扫描无连接证明请求并创建
PresentationMessage
如下
ProofRecord record = await proofService.ProcessRequestAsync(agentContext, Proof.RequestPresentationMessage, null);
(PresentationMessage presentationMessage, ProofRecord proofRecord) = await proofService.CreatePresentationAsync(agentContext, record.Id, requestedCredentials);
ProofRecord
EA2 上的状态是Accepted
- EA2 发送
PresentationMessage
如下
ServiceDecorator service = Proof.RequestPresentationMessage.GetDecorator<ServiceDecorator>(DecoratorNames.ServiceDecorator);
IMessageService messageService = App.Container.Resolve<IMessageService>();
await messageService.SendAsync(agentContext: agentContext, message: presentationMessage, recipientKey: service.RecipientKeys.First(), endpointUri: service.ServiceEndpoint, routingKeys: service.RoutingKeys?.ToArray());
在上述步骤中,EA2 收到错误“ Failed to send A2A message with an HTTP status code of InternalServerError and content ”。
任何人都可以建议我需要进行哪些更改才能使其正常工作吗?