Firebase in a Docker container

468 views
Skip to first unread message

elamison

unread,
Jul 8, 2016, 10:27:41 AM7/8/16
to Firebase Google Group
I'm trying to retrieve data from a firebase database in node.js which works fine until i run it in a Docker container.

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

I think this is the problem (from the docker syslog):

dropping unexpected TCP packet sent from 172.18.0.3:33368 to 216.58.210.173:443 (valid sources = 192.168.65.2, 0.0.0.0)

I'm not sure what firebase is doing in the response but I'm able to make requests fine to google.com and twitter. Is this something I can address with firebase or a docker issue?

elamison

unread,
Jul 8, 2016, 1:19:01 PM7/8/16
to Firebase Google Group
After digging more I think it's something with Docker's bridge but it seems that Google/Firebase (216.58.210.173:443) is rejecting the packet because the source IP is not in a valid list.
Reply all
Reply to author
Forward
0 new messages