2

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?

Community
  • 1
  • 1
Sergio Carneiro
  • 3,726
  • 4
  • 35
  • 51

2 Answers2

2

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.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
0

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.

Community
  • 1
  • 1
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Sorry if I didn't make it clear, but paypal is just an example of someone else reporting the same error. My code is the one in the first link, and it's the entire code of the function. – Sergio Carneiro Mar 17 '17 at 14:59