-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can no longer run emulators with --project=dummy #5170
Comments
Have you tried Somewhere in the documentation, Firebase mentions that any locally used projects should be named |
Hi Asko,
Thank you for the suggestion. I tried with 'demo-'. Unfortunately I get the
same error message.
I have deployment targets for hosting in my .firebaserc file maybe I should
add 'demo-' there (as the error message suggests), but that feels wrong...
…On Tue, Oct 25, 2022 at 7:02 PM Asko Kauppi ***@***.***> wrote:
Have you tried demo-dummy?
Somewhere in the documentation, Firebase mentions that any locally used
projects should be named demo-{something}. This ensures they are not
intertwined with the actual Firebase projects online.
—
Reply to this email directly, view it on GitHub
<#5170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMVSZAOVIOWBHRS4C2W2ATWE6O2ZANCNFSM6AAAAAARNTFHLY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes I experience the same. Although I've used a dummy project name that was not corresponding to a real Firebase project. So that without the With the |
I have the same issue. Is there an update on this? @athoma13 @ludwig432 did you find any workaround? |
Please include a full set of repro instructions so we can track this down: firebase.json Thank you |
I have created a simple sample project that showcases the issue between two versions of firebase-tools. |
Thank you norkje that's helpful. I narrowed down the issue to this line in the hosting config: The actual error is being thrown inside of rc.ts |
Sorry been away... I can confirm that @norkje repo accurately depicts my issue too. Thank you so much for posting! |
This is a pretty annoying problem. I've found out this was introduced on v11.14.2 so rolling back to v11.14.1 makes the emulators work again.
|
To further help in finding the fix, the debug logs when running the emulator fail after a call to firebase gets a 403. This is the relevant info I guess:
I have no idea why this call would be attempted as the logs correctly identify that this is a demo project
|
This is completely blocking me from updating to newer versions of the Firebase CLI. Given this seems to be a regression and there are 0 instructions on what the correct process is to rectify this problem, it's quite disappointing that it's not been given any attention in quite some time. Is there anything that can be done regarding this? What are the instructions for using local only projects ( |
@joehan thanks for submitting a fix, I've tried the latest version and I am still having problems. It is still failing on the same request as above:
And to make sure it is using the correct version, I created an npm task to print the output of
|
Looks like I missed somewhere we're making a prod call - reopening this. |
Soo sorry to do this again but the problem still stands. Am I doing something wrong?
If you can point me in the right direction I'd be more than happy to try to fix it but I have no knowledge of the codebase so it's an uphill battle for me. |
Ran back into this issue as I had to update the Firebase CLI to be able to use Python Cloud Functions... No idea what exactly I'm doing here but it was a workaround to add the But it resulted in the emulator being happy as it could now serve the hosting files for those targets:
So for example:
|
It's 2024 and this is still a problem, I can't believe this regression has been ignored for this long! Running the latest version of the emulators still yields issues:
Please, can you document the correct way to use "demo" projects? You seem to recommend the usage of "demo" projects but have ignored this for over a year and still have not found a way to move forward. How disappointing. |
Hey @gugahoi - apologies for the slow response here, looks like I missed your last response. It looks like there must be another leaky call from the emulators. Could you provide a full debug log for the failed run so that I can see where in the code this failed call is coming from? |
In Version 11.13.0 of firebase-tools (and previous versions), I was able to launch the emulator with
firebase emulators:start --import my-backup --inspect-functions --project=dummy
Since upgrading to 11.15.0, I get
Error: Deploy target xxx not configured for project dummy. Configure with...
(where xxx is a real deployment target).
I don't want the emulators to start with the same project name as a 'real' project (as I was doing previously)...
The text was updated successfully, but these errors were encountered: