Do I need a paid plan for using recaptcha on fireb

2019-05-27 03:48发布

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?

2条回答
劫难
2楼-- · 2019-05-27 04:16

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.

查看更多
beautiful°
3楼-- · 2019-05-27 04:37

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.

查看更多
登录 后发表回答