We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This error is happening while using storage from firebase_admin
firebase_admin
I'm using firebase-tools and I have configured STORAGE_EMULATOR_HOST=http://localhost:9199 but I'm getting this error:
STORAGE_EMULATOR_HOST=http://localhost:9199
google.api_core.exceptions.MethodNotImplemented: 501 POST http://localhost:9199/storage/v1/b?project=test-dev&prettyPrint=false: Not Implemented
I executed the code below.
from firebase_admin import firestore from firebase_admin import storage from firebase_admin.exceptions import NotFoundError, ConflictError # Cloud Storage Instantiation BUCKET_NAME = "administrative" bucket = storage.bucket(BUCKET_NAME) if not bucket.exists(): try: bucket.create() bucket.labels = { "type": "internal", "name": "administrative", } except NotFoundError: print("Not Found Error") except ConflictError: print("Conflict Error")
The text was updated successfully, but these errors were encountered:
Could you try setting STORAGE_EMULATOR_HOST to 127.0.0.1:9199?
STORAGE_EMULATOR_HOST
127.0.0.1:9199
Sorry, something went wrong.
Closing due to inactivity. Please open a new issue if you are still facing problems.
I can confirm that it works with
STORAGE_EMULATOR_HOST=http://127.0.0.1:9199
tonyjhuang
No branches or pull requests
[READ] Step 1: Are you in the right place?
This error is happening while using storage from
firebase_admin
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
I'm using firebase-tools and I have configured
STORAGE_EMULATOR_HOST=http://localhost:9199
but I'm getting this error:Steps to reproduce:
I executed the code below.
Relevant Code:
The text was updated successfully, but these errors were encountered: