Skip to content

[FR] Add support for storage emulator #570

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

Open
PaulRudin opened this issue Sep 4, 2021 · 11 comments
Open

[FR] Add support for storage emulator #570

PaulRudin opened this issue Sep 4, 2021 · 11 comments

Comments

@PaulRudin
Copy link

The python admin sdk does not appear to support the firebase storage emulator. Other emulators are supported, and the node sdk has this support.

@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@qhaas
Copy link

qhaas commented Apr 1, 2022

We encountered this today, it is listed as 'future' in the admin sdk emulator support matrix, hopefully this feature is available soon.

@rbarrette
Copy link

bump.

@lahirumaramba
Copy link
Member

Hey @yuchenshi, @christhompsongoogle FYI.

@vizaiapp
Copy link

vizaiapp commented Sep 7, 2022

Any updates on this?

@christhompsongoogle
Copy link

christhompsongoogle commented Sep 13, 2022

Hi @vizaiapp, no timeline to share on this just yet but it's still on our radar.

+cc @taeold

@prggTheProgrammer
Copy link

I think there already is support for storage emulator, it just isn't documented well in the docs.
The docs say you need to use FIREBASE_STORAGE_EMULATOR_HOST, but you actually have to use STORAGE_EMULATOR_HOST. (see #693 and this answer) And by doing this, I was able to use the python admin sdk to connect to the storage emulator.

@lahirumaramba
Copy link
Member

If setting STORAGE_EMULATOR_HOST works that means emulator support is now added to the storage library. We still need to map FIREBASE_STORAGE_EMULATOR_HOST to STORAGE_EMULATOR_HOST internally in the Admin SDK. The change should be similar to: firebase/firebase-admin-go#520

In the meantime, please use STORAGE_EMULATOR_HOST

@bowenng
Copy link

bowenng commented Apr 17, 2024

Can we please update the documentation for Python SDK at least?

@ghost
Copy link

ghost commented May 7, 2024

I was able to get it working in python by setting my STORAGE_EMULATOR_HOST environment variable equal to http://127.0.0.1:9199. Can I get confirmation that this is a safe work around for now?

@christhompsongoogle
Copy link

I spoke to Lahiru, setting STORAGE_EMULATOR_HOST is okay to use the emulator for now. We still need to map FIREBASE_STORAGE_EMULATOR_HOST to STORAGE_EMULATOR_HOST in the SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests