Firesbase query with node.js gets no response

How can I make an http request. When I query Firebase I get no response. The code works locally so I assume that I need to bridge the container to my existing network? The strange thing that I noticed though is that I can make an http request to google fine (although it’s slow). I have port 443 exposed also.

I think it’s something with websockets. Here are my exposed ports:
0.0.0.0:443->443/tcp, 0.0.0.0:8080->8080/tcp

Information

  const ref = firebase.database().ref(`datasource/${userId}`)
  .once('value').then( (snapshot) => {
    console.log(snapshot.val());
  });

Syslog:
Jul 8 09:29:00 MacBookDocker[com.docker.slirp][55683] : failed to establish 9P connection: Caught EOF on underlying FLOW
Jul 8 09:29:00 MacBookDocker[com.docker.vmnetd][76642] : EOF reading packet from Unix domain socket: closing
Jul 8 09:29:00 MacBookDocker[com.docker.vmnetd][76642] : Failed to read hello from client
Jul 8 09:29:06 MacBookDocker[com.docker.slirp][55683] : TCP 104.239.220.248:80 > 192.168.65.2:50224 proxy failed with flow proxy b: Connection refused
Jul 8 09:30:21 MacBookDocker[com.docker.slirp][55683] : failed to establish 9P connection: Caught EOF on underlying FLOW
Jul 8 09:30:21 MacBookDocker[com.docker.vmnetd][76739] : EOF reading packet from Unix domain socket: closing
Jul 8 09:30:21 MacBookDocker[com.docker.vmnetd][76739] : Failed to read hello from client