Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [REQUIRED] Environment info firebase-tools: 12.5.2
- Platform: macOS Big Sur version 11.4, Node v18.16.0
- [REQUIRED] Problem Description
- When running the command firebase emulators:start --only functions,firestore, the following error occurs:
- i emulators: Starting emulators: functions, firestore ⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, hosting, pubsub, storage ⚠ firestore: Cloud Firestore Emulator does not support multiple databases yet. ⚠ firestore: Did not find a Cloud Firestore rules file specified in a firebase.json config file. ⚠ firestore: The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration. i firestore: Firestore Emulator logging to firestore-debug.log ✔ firestore: Firestore Emulator UI websocket is running on 9150. i ui: Emulator UI logging to ui-debug.log i functions: Watching "/Users/jasonbourne/Desktop/fhir-server" for Cloud Functions... ✔ functions: Using node@18 from host. Serving at port 8751
- node:events:491 throw er; // Unhandled 'error' event ^
- Error: listen EADDRINUSE: address already in use :::8751 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at Server.listen (node:net:1876:7) at Server.listen (/Users/jasonbourne/Desktop/fhir-server/node_modules/@asymmetrik/node-fhir-server-core/dist/server/server.js:322:14) at Object. (/Users/jsonbourne/Desktop/fhir-server/index.js:83:12) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1767:8) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EADDRINUSE', errno: -48, syscall: 'listen', address: '::', port: 8751 }
- Node.js v18.16.0
- ⬢ functions: Failed to load function definition from source: FetchError: request to http://127.0.0.1:8751/__/functions.yaml failed, reason: socket hang up
- [REQUIRED] Firebase Configuration (firebase.json)
- { "functions": { "source": ".", "runtime": "nodejs18" }, "hosting": { "public": "public", "ignore": [ "firebase.json", "/.*", "/node_modules/" ], "rewrites": [ { "source": "", "destination": "/index.html" } ] }, "emulators": { "auth": { "port": 5001 }, "functions": { "port": 34197 }, "firestore": { "port": 8080 }, "database": { "port": 9000 }, "hosting": { "port": 5004 }, "pubsub": { "port": 8085 }, "storage": { "port": 9199 }, "eventarc": { "port": 9299 }, "ui": { "enabled": true }, "singleProjectMode": true } }
- [REQUIRED] Problem I Am Solving
- I am working on integrating a Fast Healthcare Interoperability Resources (FHIR) server with Firebase services to create a robust and scalable backend for healthcare applications. The specific challenges I am addressing are as follows:
- Scalable Database Services
- Handling FHIR API Requests
- User Authentication and Security
- Testing in Firebase Emulator Environment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement