Open gutenye opened 6 years ago
Why does the emulator need to phone home (Google, Mountain View ) ? I am facing a similar issue and would like to be able to use the emulator while travelling without an Internet connection. I get a timeout when issuing "functions start":
at new RequestError (C:\Users\s3cnpj\Downloads\node-v8.4.0-win-x64\node_modules\@google-cloud\functions-emulator\node_modules\googleapis\node_modules\google-auth-library\lib\transporters.js:34:42)
I met same problems too under proxy on windows. On windows, I got
''' ERROR: Error: getaddrinfo EAI_AGAIN cloudfunctions.googleapis.com:443 at new RequestError (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\@google-cloud\functions-emulator\node_modules\googleapis\node_modules\google-auth-lib rary\lib\transporters.js:34:42) at Request._callback (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\@google-cloud\functions-emulator\node_modules\googleapis\node_modules\google-auth-li brary\lib\transporters.js:108:23) '''
as of this date... this is still not fixed... Tried the same options, setting the proxy on node, and as environment variable.
Thanks for stopping by to let us know something could be better!
Please run down the following list and make sure you've tried the usual "quick fixes":
functions --help
orfunctions-emulator --help
If you are still having issues, please be sure to include as much information as possible:
Environment details
Steps to reproduce
Got
The local emulator needs to access Google auth service, but all Google services are blocked in China. So I need to use a proxy for it.
I tried
http_proxy
,https_proxy
Environment variableNo luck, it seems local emulator does not support proxy yet. And I haven't find any documentation related to proxy on the Wiki.