<!-- DO NOT DELETE validate_template=true template_path=.github/ISSUE_TEMPLATE/bug_report.md --> <!-- Thank you for contributing to the Firebase community! Think you found a bug? ======================= Yeah, we're definitely not perfect! Please use this template and include a minimal repro when opening the issue. If you know how to solve the issue, please create a Pull Request, and we'd be happy to review it! Have a feature request? ======================== Great, we love hearing how we can improve our products! However, do not use this template to submit a feature request. Please submit your feature requests to: https://firebase.google.com/support/contact/bugs-features/ Have a usage question? ======================= We get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Please take a look at the guide first: https://firebase.google.com/docs/cli/ If the official documentation doesn't help, try asking through our official support channel: https://firebase.google.com/support/ Additional locations to check for solutions or assistance from the community: - Stack Overflow: https://stackoverflow.com/ - Firebase Slack Community: https://firebase.community/ *Please avoid duplicate posting across multiple channels!* --> ### [REQUIRED] Environment info <!-- What version of the Firebase CLI (`firebase-tools`) are you using? Note that your issue may already be fixed in the latest versions. The latest version can be found at https://github.com/firebase/firebase-tools/releases --> <!-- Output of `firebase --version` --> **firebase-tools: 11.20.0** **firebase-functions: 4.1.1** <!-- e.g. macOS, Windows, Ubuntu --> **Platform: macOS, Debian** ### [REQUIRED] Test case <!-- Provide a minimal, complete, and verifiable example (http://stackoverflow.com/help/mcve) --> 1. Initialize Firebase project with functions only, 2. update firebase-admin and `firebase-functions`, 3. ensure there is `functions/.env.<projectId>` file with the contents `RANDOM_FLOAT=0.2`, 4. replace `functions/index.js` contents with: ``` const functions = require("firebase-functions"); const { defineFloat } = require("firebase-functions/params"); const randomFloat = defineFloat("RANDOM_FLOAT"); exports.helloWorld = functions.https.onRequest((request, response) => { functions.logger.info(process.env); response.send(`Random float: ${randomFloat.value()}`); }); ``` ### [REQUIRED] Steps to reproduce <!-- Provide the steps needed to reproduce the issue with the above test case. --> Deploy the above function. ### [REQUIRED] Expected behavior <!-- What is the expected behavior? --> Logs should show env object with `RANDOM_FLOAT:"0.2"` and response should be `Random float: 0.2`. ### [REQUIRED] Actual behavior <!-- Run the command with --debug flag, and include the logs below. --> Logs show env object with `RANDOM_FLOAT:"[\"1.0\"]"` (a JSON array instead of float) and response is `Random float: 0`.