Do I need a paid plan for using recaptcha on fireb

2019-05-27 03:38发布

问题:

I created a firebase function for making my website's recaptcha validation, but I'm getting the error that people get when they have the Spark (free) plan and try to send a request to an external api.

This is my error: Firebase functions ENOTFOUND on all http requests

And this is an error when someone else requested an external API: Firebase functions - getaddrinfo ENOTFOUND api.sandbox.paypal.com

From Firebase's pricing page:

The Spark plan only allows outbound network requests to Google owned services

Google owned services they say, so this shouldn't be a problem when requesting a recaptcha validation, right?

回答1:

It it no longer necessary to be on the paid plan to call the reCAPTCHA server API as it was recently whitelisted (as long as you're accessing it via recaptcha.google.com). You can read more about that here.



回答2:

Something in your code is reaching out to api.sandbox.paypal.com, which is not a Google-owned service. So you will indeed need to be on a paid plan for that.

Without seeing the minimal code that reproduces the problem it has hard to say what precisely calls Paypal.