I am trying to get http response in cloud function
I have written a very simple code in cloud function to check if the email which the user has entered in correct?
Hi @dip1994,
Welcome to the Google Cloud Community!
You can check this Stack Overflow Post as you might have the same case.
Try changing your return statement to this format: return ("message", http_code )
def email_checker(request):
email=requests.args.get()
if "@" in email and "." in email:
return ("Valid Email", 200)
else:
return ("Invalid Email", 400)
Let me know if it helped, thanks!