René's URL Explorer Experiment


Title: FIREBASE_STORAGE_EMULATOR_HOST Environment Variable does not work with Admin SDK · Issue #874 · firebase/firebase-admin-java · GitHub

Open Graph Title: FIREBASE_STORAGE_EMULATOR_HOST Environment Variable does not work with Admin SDK · Issue #874 · firebase/firebase-admin-java

X Title: FIREBASE_STORAGE_EMULATOR_HOST Environment Variable does not work with Admin SDK · Issue #874 · firebase/firebase-admin-java

Description: My environment: Operating System version: Mac OS Sonoma 14.0 (23A344) Firebase Admin SDK version: 9.2.0 Firebase Product: Storage Emulator The problem: When setting the environment variable "FIREBASE_STORAGE_EMULATOR_HOST" to 127.0.0.1:9...

Open Graph Description: My environment: Operating System version: Mac OS Sonoma 14.0 (23A344) Firebase Admin SDK version: 9.2.0 Firebase Product: Storage Emulator The problem: When setting the environment variable "FIREBA...

X Description: My environment: Operating System version: Mac OS Sonoma 14.0 (23A344) Firebase Admin SDK version: 9.2.0 Firebase Product: Storage Emulator The problem: When setting the environment variable "F...

Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/874

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FIREBASE_STORAGE_EMULATOR_HOST Environment Variable does not work with Admin SDK","articleBody":"#### My environment:\r\n\r\n  * Operating System version: Mac OS Sonoma 14.0 (23A344)\r\n  * Firebase Admin SDK version: 9.2.0\r\n  * Firebase Product: Storage Emulator\r\n\r\n#### The problem:\r\n\r\nWhen setting the environment variable \"FIREBASE_STORAGE_EMULATOR_HOST\" to 127.0.0.1:9199 (the default Storage Emulator Port and IP) to use the Firebase Storage Emulator the Admin SDK does not detect this environment variable.\r\n\r\nOther Environment variables such as \"FIREBASE_DATABASE_EMULATOR_HOST\" and \"FIRESTORE_EMULATOR_HOST\" do work perfectly fine and as expected. They make a connection to emulators on the device.\r\n\r\nI have gone as far to test and see if this issue is persistent on other Admin SDK's such as the Node.Js SDK. It is NOT an issue that persists on the SDK for Node.js. \r\n\r\nAs see here, this was previously an issue filed for the Firebase Admin SDKin the GO Repository for the Admin SDK ([see here)](https://github.com/firebase/firebase-admin-go/issues/520) and was fixed here [(see here)](https://github.com/firebase/firebase-admin-node/pull/1175) and has been since claimed to be fixed and the logic used in the Node Admin SDK project will be implemented.\r\n\r\nThe same issue previously on the Go Repo, appears to be present on the Admin Java SDK. Even using the \"STORAGE_EMULATOR_HOST\" environment variable as it was changed to in the GO repo, does not work.\r\n\r\nDocumentation on the Firebase Admin SDK [docs](https://firebase.google.com/docs/emulator-suite/connect_storage) is also incorrect if this is the case. \r\n\r\n\u003cimg width=\"958\" alt=\"Screenshot 2023-11-03 at 5 32 06 PM\" src=\"https://github.com/firebase/firebase-admin-java/assets/56804058/05cc36ce-9d37-43f3-9002-be18e492c9de\"\u003e\r\n\r\n\r\n#### Steps to reproduce:\r\n\r\nSet either environment variable \"STORAGE_EMULATOR_HOST\" or \"FIREBASE_STORAGE_EMULATOR_HOST\" to your Emulator host address and port (the default is 127.0.0.1:9199)\r\n\r\nUse the Java Admin SDK to try and make a call like normal.\r\n\r\nSee it fail and use the production Cloud Storage instance.\r\n\r\n#### Relevant Code:\r\n\r\nEnvironment Variable Set via Intellij Run Configuration\r\n\r\n\u003cimg width=\"681\" alt=\"Screenshot 2023-11-03 at 5 30 56 PM\" src=\"https://github.com/firebase/firebase-admin-java/assets/56804058/a44f53b0-ee73-4bfc-95d1-4aa1415d4d06\"\u003e\r\n\r\n\r\n\r\n\r\n     \r\n        InputStream input = this.getClass().getResourceAsStream(\"/service-account.json\");\r\n        assert input != null;\r\n        GoogleCredentials googleCredentials = GoogleCredentials.fromStream(input);\r\n\r\n\r\n        FirebaseOptions options = FirebaseOptions.builder()\r\n                .setCredentials(googleCredentials)\r\n                .setProjectId(\"project-id\")\r\n                .setDatabaseUrl(\"https://project-id-default-rtdb.firebaseio.com\")\r\n                .setStorageBucket(\"project-id.appspot.com\")\r\n                .build();\r\n\r\n\r\n        FirebaseApp.initializeApp(options);\r\n\r\n        InputStream fileInput = this.getClass().getResourceAsStream(\"/someFile.anyExtension\");\r\n        Bucket bucket = StorageClient.getInstance().bucket();\r\n        bucket.create(\"someFile.anyExtension\", fileInput, \"application/anyExtension\");\r\n  \r\n\r\n","author":{"url":"https://github.com/tylerfrydenlund","@type":"Person","name":"tylerfrydenlund"},"datePublished":"2023-11-03T23:35:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/874/firebase-admin-java/issues/874"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:adcb0262-42f7-db4f-e438-1ef6604d5e6c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9AE8:786AF:CF7105:1101595:698EC2A3
html-safe-nonce51ce31e7e959c5e7a5a8c7656f29cec5afbb0e30aff0f6b3355abf771281f592
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUU4Ojc4NkFGOkNGNzEwNToxMTAxNTk1OjY5OEVDMkEzIiwidmlzaXRvcl9pZCI6IjY3NjgzMjQ5NTc5MjU0NTg1OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac042702422aeeb9a1bab0cdba490b88fc12c9116be4a53592f6615405b23bf5f5
hovercard-subject-tagissue:1977050461
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-java/874/issue_layout
twitter:imagehttps://opengraph.githubassets.com/780cfe16c2f916533cad728724b804852cd92351779a39b8ee6534d2472a48e8/firebase/firebase-admin-java/issues/874
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/780cfe16c2f916533cad728724b804852cd92351779a39b8ee6534d2472a48e8/firebase/firebase-admin-java/issues/874
og:image:altMy environment: Operating System version: Mac OS Sonoma 14.0 (23A344) Firebase Admin SDK version: 9.2.0 Firebase Product: Storage Emulator The problem: When setting the environment variable "FIREBA...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametylerfrydenlund
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
go-importgithub.com/firebase/firebase-admin-java git https://github.com/firebase/firebase-admin-java.git
octolytics-dimension-user_id1335026
octolytics-dimension-user_loginfirebase
octolytics-dimension-repository_id84979119
octolytics-dimension-repository_nwofirebase/firebase-admin-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id84979119
octolytics-dimension-repository_network_root_nwofirebase/firebase-admin-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues/874#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-admin-java%2Fissues%2F874
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffirebase%2Ffirebase-admin-java%2Fissues%2F874
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=firebase%2Ffirebase-admin-java
Reloadhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues/874
Reloadhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues/874
Reloadhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues/874
firebase https://patch-diff.githubusercontent.com/firebase
firebase-admin-javahttps://patch-diff.githubusercontent.com/firebase/firebase-admin-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ffirebase%2Ffirebase-admin-java
Fork 301 https://patch-diff.githubusercontent.com/login?return_to=%2Ffirebase%2Ffirebase-admin-java
Star 601 https://patch-diff.githubusercontent.com/login?return_to=%2Ffirebase%2Ffirebase-admin-java
Code https://patch-diff.githubusercontent.com/firebase/firebase-admin-java
Issues 75 https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues
Pull requests 16 https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/pulls
Actions https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/actions
Projects 0 https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/projects
Wiki https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/wiki
Security 0 https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/security
Insights https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/pulse
Code https://patch-diff.githubusercontent.com/firebase/firebase-admin-java
Issues https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues
Pull requests https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/pulls
Actions https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/actions
Projects https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/projects
Wiki https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/wiki
Security https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/security
Insights https://patch-diff.githubusercontent.com/firebase/firebase-admin-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/firebase/firebase-admin-java/issues/874
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/firebase/firebase-admin-java/issues/874
FIREBASE_STORAGE_EMULATOR_HOST Environment Variable does not work with Admin SDKhttps://patch-diff.githubusercontent.com/firebase/firebase-admin-java/issues/874#top
https://patch-diff.githubusercontent.com/jonathanedey
api: storagehttps://github.com/firebase/firebase-admin-java/issues?q=state%3Aopen%20label%3A%22api%3A%20storage%22
https://github.com/tylerfrydenlund
https://github.com/tylerfrydenlund
tylerfrydenlundhttps://github.com/tylerfrydenlund
on Nov 3, 2023https://github.com/firebase/firebase-admin-java/issues/874#issue-1977050461
see here)https://github.com/firebase/firebase-admin-go/issues/520
(see here)https://github.com/firebase/firebase-admin-node/pull/1175
docshttps://firebase.google.com/docs/emulator-suite/connect_storage
https://private-user-images.githubusercontent.com/56804058/280431488-05cc36ce-9d37-43f3-9002-be18e492c9de.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA5NjM5MTksIm5iZiI6MTc3MDk2MzYxOSw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Yjk4OTUwMDIzMmJlMTQwYzUxZjE4Njg2ZTdiODJkNDVlZDZlYjdhNzJmYWI2NDk1YWNlZTYyYzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.61LrJLP1-3pLIVb_VCLY10ZACoMt_h3M39qfdtC2j6U
jonathanedeyhttps://patch-diff.githubusercontent.com/jonathanedey
api: storagehttps://github.com/firebase/firebase-admin-java/issues?q=state%3Aopen%20label%3A%22api%3A%20storage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.