You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are attempting to host our firebase auth emulator on our local network (192.168.1.1xx) so that our physical devices in debug mode (for react native) can connect to it. Normally, on a simulator, this isn't an issue, as we use localhost. We changed our 'host' properties in firebase.json and everything works well in that regard - we are able to hit 192.168.1.1xx:9099 from browsers on other devices, meaning that our auth emulator has bound correctly.
However! When trying to hit this URL, we encountered a bug deep down in this codebase.
When switching from http://localhost:9099 to http://192.168.1.1xx:9099, we started getting the generic failure messages. Please note that our API was perfectly reachable, just not the auth code!
When digging deep into things, we got this error:
Insecure fetch request has a scheme (http) not found in fetcher allowedInsecureSchemes ( @[] ): http://192.168.1.100:9099/www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=(OURKEYHERE)
It seems evident to me that this is a bug where you guys need to allow insecure schemes (http) for useEmulator, so that we can successfully reach our auth emulator on the local network.
If you need anything else, please ask. We are happy to provide more info.
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
To reproduce this problem:
Bind auth emulator to your local network, and bind functions.
Run both emulators.
Observe that both the api and auth emulator are reachable from another device on the internal network (say, a phone).
Observe that the api works great.
Observe that the auth emulator refuses to hit a local IP on the network 192.168.1.1xx, resulting in failure for auth to be useful.
Thanks for the report! It looks like we do this properly in Functions already and we'll need to do something similar for Auth (and check the others that use the emulator):
[REQUIRED] Step 1: Describe your environment
yarn install + react native autolinking (through cocoapods)
[REQUIRED] Step 2: Describe the problem
We are attempting to host our firebase auth emulator on our local network (192.168.1.1xx) so that our physical devices in debug mode (for react native) can connect to it. Normally, on a simulator, this isn't an issue, as we use localhost. We changed our 'host' properties in firebase.json and everything works well in that regard - we are able to hit 192.168.1.1xx:9099 from browsers on other devices, meaning that our auth emulator has bound correctly.
However! When trying to hit this URL, we encountered a bug deep down in this codebase.
When switching from http://localhost:9099 to http://192.168.1.1xx:9099, we started getting the generic failure messages. Please note that our API was perfectly reachable, just not the auth code!
When digging deep into things, we got this error:
Insecure fetch request has a scheme (http) not found in fetcher allowedInsecureSchemes ( @[] ): http://192.168.1.100:9099/www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=(OURKEYHERE)
It seems evident to me that this is a bug where you guys need to allow insecure schemes (http) for useEmulator, so that we can successfully reach our auth emulator on the local network.
If you need anything else, please ask. We are happy to provide more info.
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
To reproduce this problem:
192.168.1.1xx
, resulting in failure for auth to be useful.Relevant Code:
It seems likely that the bug lives in this file..
Our code was simply calling
It is worth noting we are using rnfirebase to make the calls down to this source.
The text was updated successfully, but these errors were encountered: