来自mollom验证码的502坏网关

时间:2022-10-11 20:27:14

My application uses Mollom captcha on some form-based pages. Suddenly, on one server, the mollom requests are taking excessively long time to return with an image and audio url's. In the meantime, the server throws a 502 Bad Gateway or Network Error (TCP Error) in the browser. The issue lies in these lines:

我的应用程序在某些基于表单的页面上使用Mollom验证码。突然,在一台服务器上,mollom请求花费了太长的时间来返回图像和音频网址。与此同时,服务器在浏览器中抛出502 Bad Gateway或Network Error(TCP Error)。问题在于以下几点:

MollomClient client = new MollomClient("PubKey1","PubKey2");
GetCaptchaResponse captcha = client.getImageCaptcha(null, null);

In the logs, I can see the response after 12-14 min, but thats of no use by then. And its happening only on 1 server (even there it was working fine till last week)

在日志中,我可以看到12-14分钟后的响应,但那时没用了。它只在1台服务器上发生(即使它在上周工作正常)

I rephrase. Is there a way to keep my jboss app server waiting for the response till it actually comes ?

我改写一下。有没有办法让我的jboss应用服务器等待响应,直到实际到来?

1 个解决方案

#1


0  

Got this fixed by changing the public and private keys in my application. Looks like the mollom service was upgraded and no longer supports the older Client API

通过更改我的应用程序中的公钥和私钥来解决此问题。看起来mollom服务已升级,不再支持旧的Client API

#1


0  

Got this fixed by changing the public and private keys in my application. Looks like the mollom service was upgraded and no longer supports the older Client API

通过更改我的应用程序中的公钥和私钥来解决此问题。看起来mollom服务已升级,不再支持旧的Client API