504 Gateway Time-out, Login with mobile

1 Implementing login authentication using MobileOTP,
2 Send otp api is working fine https://healthidsbx.abdm.gov.in/api/v2/registration/mobile/login/generateOtp,
3 But verify otp API https://healthidbeta.ndhm.gov.in/api/v2/registration/mobile/login/verifyOtp not responding every time getting Time out error from Abha data: '<html><body><h1>504 Gateway Time-out</h1>\n' + "The server didn't respond in time.\n" + '</body></html>\n'
4 Request body for verifyOtp API is
body : { “otp”: “kbnA5eK4iysEILgGwcjYvpYx1cvDGhRrpMXcommO81iomam/oI7HAZC3OCVdzCqkYW9KmV6Thp8JtwFBpL94fIlWKtwYf4d57ildhxRiDWEsJuJdkDVZbdUmxwriuObTS4MvTvC8TeoBLpEoCe4CnafzsRXMPoHjPiOcwItzDOFKK7TiFroD4PaugxsYRFLeRz4rLmDT5Lj0Im5fa6DwWJJ0XZE6pmFnYAqbNB19EXmzTNmQdGpCseJWgJYEyTAI3gZOyYmrdO1TvNqmCAWaV0td67rQH+2RLwR4xJQ17qLkPlRHMbO5JaZICNVSAUZgUMIUU60tUvlHtYjolw5144YVeSahVzzP9uvEF/2txGFOLQ2UqNQqZG28JLTHu38JEiaznAkYSmWbLQFNbrUPV2T8UhbJ9Jxh8Ztr4FOJHgfyzIRzKC5fDeo0sU/WpCXBevFeXYAcV4SceyJJYAOjPMNuB8q7P3qH7fAlRP3lJ1C7cV6jW/MvnouAFQiU49CDqzW9fOFuC63gvSrsMeM6bj8JbxJHxO/GUy9gjpgZ9h0xIKnDHeNgwJU03McFRP0oY1YowIoL80xJQ3NwWsexMHcng3k1MLpq4bJtdy3iHB62CnW7hdsQvc1KvDPGXoEcR6wo8sWnGLK2PFYQP8p0p5D1nKp1LGwJVV/OJSHlWXU=”,
“txnId”: “c1172629-7d77-4552-84a4-5abf54f9189e”
}
Summary: log in with mobile no APIs are not working properly you can check both APIs I have mentioned above , getting time Error: '<html><body><h1>504 Gateway Time-out</h1>\n' + "The server didn't respond in time.\n" + '</body></html>\n', can any one help with this or is there any problem from abha’s end?

Hi @deepak1234
Use public key designated for v2 api’s for encryption with PKCS1padding and try. Use same base URL as generate OTP

Hii @ayadav33 already tried but the problem is that an ABDM API is not responding giving a time-out error, I tried multiple times, with PKCS1 padding, as you guys suggested in the M-1 workshop, please read the error in the previous message I mentioned, send otp is working but it is also taking lot time , verify is not even responding properly.

Please provide some solution regarding that.

ok @ayadav33 it worked in postman collection it was having old url sorry.

1 Like