question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to deploy behind a proxy

See original GitHub issue

Hi,

I’m following the firebase web tutorial (https://codelabs.developers.google.com/codelabs/firebase-web/). Everything works fine for the 8 first steps, but in step 9 I have a problem : the command firebase deploy hangs indefinitely. I have this behavior while being behind a proxy (http_proxy and https_proxy are set in the env).

Is there a way to deploy behind a proxy ? This seems related to issue #36

Yann


Here is the output of firebase deploy --debug

----------------------------------------------------------------------
Command:      node /Users/ymainier/.nvm/versions/node/v0.12.1/bin/firebase deploy --debug
CLI Version:  3.0.0
Platform:     darwin
Node Version: v0.12.1
Time:         Wed May 25 2016 16:46:59 GMT+0200 (CEST)
----------------------------------------------------------------------

> command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
>>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/friendlychat-dd6a6 
<<< HTTP RESPONSE 200 server=nginx, date=Wed, 25 May 2016 14:47:57 GMT, content-type=application/json; charset=utf-8, content-length=124, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
>>> HTTP REQUEST GET https://admin.firebase.com/v1/database/friendlychat-dd6a6/tokens 
<<< HTTP RESPONSE 200 server=nginx, date=Wed, 25 May 2016 14:47:57 GMT, content-type=application/json; charset=utf-8, content-length=433, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:51
  • Comments:159 (8 by maintainers)

github_iconTop GitHub Comments

49reactions
BigDreamerQIyuEcommented, Mar 22, 2020

Hope this will help you: firebase-tools@7.15.1 it works on both win and mac with ssr

  1. find your proxy address WeChatd29e8b5b594f8cff963da7441b84fbc9

  2. open “request.js” file in your firebase tools folder. for me, the path is /usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js use “npm root -g” to find your global npm path

  3. find the code below, about line 276

  if (!self.hasOwnProperty('proxy')) {
    self.proxy = getProxyFromURI(self.uri)
  }

change it to

  // if (!self.hasOwnProperty('proxy')) {
  //   self.proxy = getProxyFromURI(self.uri)
  // }
  self.proxy = "http://127.0.0.1:1087";  // this is your proxy address
  1. use firebase login --no-localhost
41reactions
ChampIsMecommented, May 28, 2017

Firebase devs please solve this issue, it a serious dev delay up to date.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure App Service Deploy fails behind proxy
When attempting to deploy to Azure app service from behind our corporate proxy, the task fails with the following error:
Read more >
Unable to deploy OVF using vSphere Client in vCenter Server ...
This issue occurs when the OVF deployment process is unable to connect to the proxy server with the error: Transfer failed: Invalid response...
Read more >
Installing behind a proxy - MicroK8s
Configuring the proxy environment variables. MicroK8s packages a number of utilities (eg curl, helm) that may need to fetch resources from the internet....
Read more >
Install and use behind a firewall or proxy server - Visual Studio ...
Service or scenario DNS endpoint Protocol/Port URL resolution go.microsoft.com aka.ms Start Page vsstartpage.blob.core.windows.net 443 AI Project Integration az861674.vo.msecnd.net 443
Read more >
Configuring Proxies for Tableau Server
To enable communication from Tableau Server to the internet, deploy Tableau Server behind a forward proxy server. When Tableau Server needs access to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found