You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by sebbASF <gi...@git.apache.org> on 2016/11/09 17:10:43 UTC
[GitHub] incubator-ponymail issue #236: Bug: elastic.lua checkReturn() does not prope...
GitHub user sebbASF opened an issue:
https://github.com/apache/incubator-ponymail/issues/236
Bug: elastic.lua checkReturn() does not properly check return code
checkReturn() checks the return code for nil and "closed".
However AFAICT it can never be nil [1], it will either be an HTTP error code (number) or a string containing an error message.
If the ES uri is wrong, then the code should respond with "Could not contact database backend!" rather than "Backend Database returned code invalid host name!" or similar.
[1]http://w3.impa.br/~diego/software/luasocket/http.html#request
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-ponymail issue #236: Bug: elastic.lua checkReturn() does not prope...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the issue at:
https://github.com/apache/incubator-ponymail/issues/236
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---