For the purposes of convenience in reading this question, refer to the following URLs as follows:
URL definitions:url1 = \'https://my-firebase.firebaseio.com/u
@FrankvanPuffelen answers here:
Both of your problems are caused by the fact that you're using two different ways of accessing Firebase: the JavaScript SDK and the REST API. While these two methods can be used together, you will have to ensure you provide the information that is needed. In general you will have an easier experience if you stick to using one way of accessing Firebase from a single client.