Firebase SMS OTP

Hello everyone
I have been trying to incorporate OTP sign up using Firebase authentication service. I had followed this forum post. But I am still unable to do it. This is the error message being generated says " Could not connect to the recaptcha service". Any help is appreciated.