简体   繁体   English

验证密码时出现“ 502错误的网关:请求端点无法处理”

[英]Getting “502 bad gateway: request endpoint unable to handle” while validating the password

Am getting above error while validating the password in node.js and sending the response to android client. 在验证node.js中的密码并将响应发送到android客户端时遇到上述错误。

Can anyone check my validation code is correct or not? 任何人都可以检查我的验证码是否正确?

var queryData = url.parse(request.url, true).query;
var Email =  queryData.email;
var Password =  queryData.passwd;
ibmdb.open(dbConnection, function(err, conn) {
    if (err) {
        response.send("error occurred " + err.message);
    }
    else {
        console.log('before select');
        conn.query("SELECT PASSWORD FROM USER02130.USER_DETAILS123 WHERE SHORT_ID='"+Email+"'", function(err,  rows, moreResultSets) {
            if ( !err ) {
    var valid = rows.JSON();
    if (valid.PASSWORD==Password) {
            response.write("Successful login");
                                              }
    else {
       response.write("Invalid Password");
          }

}
else {
       response.write("error occurred " + err.message);
       }
       response.end();
        });
    }
})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 调用在GCP中部署的Spring Boot应用程序中配置的端点时获取502 Bad Gateway - Getting 502 Bad Gateway while calling an end point configured in spring boot application deployed in GCP 在访问部署在 kubernetes pod 上的 Java 应用程序时获取 502 Bad Gateway (Nginx) - Getting 502 Bad Gateway (Nginx) while accessing Java application deployed on kubernetes pod Haproxy Bad Gateway 502 - Haproxy Bad Gateway 502 泽西岛客户端无法连接到远程计算机(502错误网关) - Jersey client unable to connect to remote machine (502 Bad Gateway) 我在使用 Microsoft Graph Api 甚至使用 PowerShell 命令创建团队时收到 502 Bad gateway 错误 - I am getting 502 Bad gateway error while creating team using Microsoft Graph Api and even using PowerShell commands 当我在同一执行中多次使用HtmlUnit请求时获得502 Bad Gateway - Getting 502 Bad Gateway when I use HtmlUnit requests multiple times in the same execution Beanstalk 502 Bad Gateway Spring应用程序 - Beanstalk 502 Bad Gateway Spring application Azure Java功能-502-Bad Gateway - Azure Java function -502-Bad Gateway 502 错误网关 Elastic Beanstalk Spring Boot - 502 bad gateway Elastic Beanstalk Spring Boot GAE Java Flexible env 502坏网关 - GAE Java Flexible env 502 bad gateway
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM