-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase-debug.log
352 lines (342 loc) · 76.5 KB
/
firebase-debug.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
[debug] [2023-11-24T19:20:40.822Z] ----------------------------------------------------------------------
[debug] [2023-11-24T19:20:40.823Z] Command: /usr/local/bin/node /usr/local/bin/firebase emulators:start
[debug] [2023-11-24T19:20:40.823Z] CLI Version: 12.5.2
[debug] [2023-11-24T19:20:40.823Z] Platform: darwin
[debug] [2023-11-24T19:20:40.823Z] Node Version: v18.17.1
[debug] [2023-11-24T19:20:40.824Z] Time: Sat Nov 25 2023 02:20:40 GMT+0700 (Western Indonesia Time)
[debug] [2023-11-24T19:20:40.824Z] ----------------------------------------------------------------------
[debug]
[debug] [2023-11-24T19:20:40.883Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2023-11-24T19:20:40.888Z] > authorizing via signed-in user ([email protected])
[debug] [2023-11-24T19:20:40.971Z] java version "19" 2022-09-20
[debug] [2023-11-24T19:20:40.972Z] Java(TM) SE Runtime Environment (build 19+36-2238)
Java HotSpot(TM) 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)
[debug] [2023-11-24T19:20:40.974Z] Parsed Java major version: 19
[info] i emulators: Starting emulators: functions, firestore, hosting, storage {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: functions, firestore, hosting, storage"}}
[debug] [2023-11-24T19:20:41.502Z] [logging] Logging Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.502Z] [firestore] Firestore Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.502Z] [firestore.websocket] websocket server for firestore only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.502Z] [hosting] Hosting Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.502Z] [storage] Storage Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.502Z] assigned listening specs for emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"firestore":[{"address":"127.0.0.1","family":"IPv4","port":8080}],"firestore.websocket":[{"address":"127.0.0.1","family":"IPv4","port":9150}],"hosting":[{"address":"127.0.0.1","family":"IPv4","port":5000}],"storage":[{"address":"127.0.0.1","family":"IPv4","port":9199}]},"metadata":{"message":"assigned listening specs for emulators"}}
[debug] [2023-11-24T19:20:41.508Z] [hub] writing locator at /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/hub-live-demo-firebase.json
[debug] [2023-11-24T19:20:41.662Z] [functions] Functions Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.662Z] [eventarc] Eventarc Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2023-11-24T19:20:41.662Z] late-assigned ports for functions and eventarc emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"firestore":[{"address":"127.0.0.1","family":"IPv4","port":8080}],"firestore.websocket":[{"address":"127.0.0.1","family":"IPv4","port":9150}],"hosting":[{"address":"127.0.0.1","family":"IPv4","port":5000}],"storage":[{"address":"127.0.0.1","family":"IPv4","port":9199}],"functions":[{"address":"127.0.0.1","family":"IPv4","port":5001}],"eventarc":[{"address":"127.0.0.1","family":"IPv4","port":9299}]},"metadata":{"message":"late-assigned ports for functions and eventarc emulators"}}
[warn] ⚠ functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, database, pubsub {"metadata":{"emulator":{"name":"functions"},"message":"The following emulators are not running, calls to these services from the Functions emulator will affect production: \u001b[1mauth, database, pubsub\u001b[22m"}}
[debug] [2023-11-24T19:20:41.664Z] defaultcredentials: writing to file /Users/pradana/.config/firebase/tiffarainever_gmail_com_application_default_credentials.json
[debug] [2023-11-24T19:20:41.667Z] Setting GAC to /Users/pradana/.config/firebase/tiffarainever_gmail_com_application_default_credentials.json {"metadata":{"emulator":{"name":"functions"},"message":"Setting GAC to /Users/pradana/.config/firebase/tiffarainever_gmail_com_application_default_credentials.json"}}
[debug] [2023-11-24T19:20:41.668Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase/adminSdkConfig [none]
[debug] [2023-11-24T19:20:42.519Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase/adminSdkConfig 200
[debug] [2023-11-24T19:20:42.519Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase/adminSdkConfig {"projectId":"live-demo-firebase","storageBucket":"live-demo-firebase.appspot.com","locationId":"us-central"}
[debug] [2023-11-24T19:20:42.542Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: auto_download"}}
[debug] [2023-11-24T19:20:42.542Z] Ignoring unsupported arg: single_project_mode_error {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: single_project_mode_error"}}
[debug] [2023-11-24T19:20:42.542Z] Starting Firestore Emulator with command {"binary":"java","args":["-Dgoogle.cloud_firestore.debug_log_level=FINE","-Duser.language=en","-jar","/Users/pradana/.cache/firebase/emulators/cloud-firestore-emulator-v1.18.1.jar","--host","127.0.0.1","--port",8080,"--websocket_port",9150,"--project_id","live-demo-firebase","--rules","/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/firestore.rules","--single_project_mode",true,"--functions_emulator","127.0.0.1:5001"],"optionalArgs":["port","webchannel_port","host","rules","websocket_port","functions_emulator","seed_from_export","project_id","single_project_mode"],"joinArgs":false} {"metadata":{"emulator":{"name":"firestore"},"message":"Starting Firestore Emulator with command {\"binary\":\"java\",\"args\":[\"-Dgoogle.cloud_firestore.debug_log_level=FINE\",\"-Duser.language=en\",\"-jar\",\"/Users/pradana/.cache/firebase/emulators/cloud-firestore-emulator-v1.18.1.jar\",\"--host\",\"127.0.0.1\",\"--port\",8080,\"--websocket_port\",9150,\"--project_id\",\"live-demo-firebase\",\"--rules\",\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/firestore.rules\",\"--single_project_mode\",true,\"--functions_emulator\",\"127.0.0.1:5001\"],\"optionalArgs\":[\"port\",\"webchannel_port\",\"host\",\"rules\",\"websocket_port\",\"functions_emulator\",\"seed_from_export\",\"project_id\",\"single_project_mode\"],\"joinArgs\":false}"}}
[info] i firestore: Firestore Emulator logging to firestore-debug.log {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator logging to \u001b[1mfirestore-debug.log\u001b[22m"}}
[debug] [2023-11-24T19:20:43.111Z] Nov 25, 2023 2:20:43 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
INFO: Started WebSocket server on ws://127.0.0.1:9150
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:20:43 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start\nINFO: Started WebSocket server on ws://127.0.0.1:9150\n"}}
[debug] [2023-11-24T19:20:43.122Z] API endpoint: http:// {"metadata":{"emulator":{"name":"firestore"},"message":"API endpoint: http://"}}
[debug] [2023-11-24T19:20:43.122Z] 127.0.0.1:8080
If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:
export FIRESTORE_EMULATOR_HOST=127.0.0.1:8080
Dev App Server is now running.
{"metadata":{"emulator":{"name":"firestore"},"message":"127.0.0.1:8080\nIf you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:\n\n export FIRESTORE_EMULATOR_HOST=127.0.0.1:8080\n\nDev App Server is now running.\n\n"}}
[info] ✔ firestore: Firestore Emulator UI websocket is running on 9150. {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator UI websocket is running on 9150."}}
[debug] [2023-11-24T19:20:43.347Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"storage"},"message":"Ignoring unsupported arg: port"}}
[debug] [2023-11-24T19:20:43.743Z] Temp file directory for storage emulator: /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/firebase/storage/blobs {"metadata":{"emulator":{"name":"storage"},"message":"Temp file directory for storage emulator: /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/firebase/storage/blobs"}}
[debug] [2023-11-24T19:20:43.747Z] >>> [apiv2][query] GET https://firebasehosting.googleapis.com/v1beta1/projects/live-demo-firebase/sites
[debug] [2023-11-24T19:20:44.667Z] <<< [apiv2][status] GET https://firebasehosting.googleapis.com/v1beta1/projects/live-demo-firebase/sites 200
[debug] [2023-11-24T19:20:44.668Z] <<< [apiv2][body] GET https://firebasehosting.googleapis.com/v1beta1/projects/live-demo-firebase/sites {"sites":[{"name":"projects/live-demo-firebase/sites/live-demo-firebase","defaultUrl":"https://live-demo-firebase.web.app","appId":"1:89267697560:web:b5180668bed6be7a0d9ded","type":"DEFAULT_SITE"}]}
[debug] [2023-11-24T19:20:44.668Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase/webApps/1:89267697560:web:b5180668bed6be7a0d9ded/config [none]
[debug] [2023-11-24T19:20:45.997Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase/webApps/1:89267697560:web:b5180668bed6be7a0d9ded/config 200
[debug] [2023-11-24T19:20:45.998Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase/webApps/1:89267697560:web:b5180668bed6be7a0d9ded/config {"projectId":"live-demo-firebase","appId":"1:89267697560:web:b5180668bed6be7a0d9ded","storageBucket":"live-demo-firebase.appspot.com","locationId":"us-central","apiKey":"AIzaSyBCLLQ_Qy5bfAwOOzLxiC0Y8nZB4R27a3k","authDomain":"live-demo-firebase.firebaseapp.com","messagingSenderId":"89267697560","measurementId":"G-TYFCHQ4DYH"}
[debug] [2023-11-24T19:20:46.008Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase [none]
[debug] [2023-11-24T19:20:46.713Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase 200
[debug] [2023-11-24T19:20:46.714Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/live-demo-firebase {"projectId":"live-demo-firebase","projectNumber":"89267697560","displayName":"live-demo-firebase","name":"projects/live-demo-firebase","resources":{"hostingSite":"live-demo-firebase","storageBucket":"live-demo-firebase.appspot.com","locationId":"us-central"},"state":"ACTIVE","etag":"1_4e46fb45-13d6-4740-ba73-2e8d2e5191da"}
[info] i hosting[live-demo-firebase]: Serving hosting files from: build {"metadata":{"emulator":{"name":"hosting"},"message":"Serving hosting files from: \u001b[1mbuild\u001b[22m"}}
[info] ✔ hosting[live-demo-firebase]: Local server: http://127.0.0.1:5000 {"metadata":{"emulator":{"name":"hosting"},"message":"Local server: \u001b[4m\u001b[1mhttp://127.0.0.1:5000\u001b[22m\u001b[24m"}}
[debug] [2023-11-24T19:20:46.802Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}}
[debug] [2023-11-24T19:20:46.803Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}}
[debug] [2023-11-24T19:20:46.803Z] Starting Emulator UI with command {"binary":"node","args":["/Users/pradana/.cache/firebase/emulators/ui-v1.11.7/server/server.js"],"optionalArgs":[],"joinArgs":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"/Users/pradana/.cache/firebase/emulators/ui-v1.11.7/server/server.js\"],\"optionalArgs\":[],\"joinArgs\":false}"}}
[info] i ui: Emulator UI logging to ui-debug.log {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI logging to \u001b[1mui-debug.log\u001b[22m"}}
[debug] [2023-11-24T19:20:46.879Z] Web / API server started at 127.0.0.1:4000
{"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at 127.0.0.1:4000\n"}}
[debug] [2023-11-24T19:20:46.879Z] Web / API server started at ::1:4000
{"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at ::1:4000\n"}}
[info] i functions: Watching "/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions" for Cloud Functions... {"metadata":{"emulator":{"name":"functions"},"message":"Watching \"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions\" for Cloud Functions..."}}
[debug] [2023-11-24T19:20:47.076Z] Validating nodejs source
[warn] ⚠ functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.
[debug] [2023-11-24T19:20:47.763Z] > [functions] package.json contents: {
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase emulators:start --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
},
"main": "index.js",
"dependencies": {
"firebase-admin": "^10.0.2",
"firebase-functions": "^4.4.1"
},
"devDependencies": {
"firebase-functions-test": "^0.2.0"
},
"private": true
}
[debug] [2023-11-24T19:20:47.763Z] Building nodejs source
[debug] [2023-11-24T19:20:47.763Z] Failed to find version of module node: reached end of search path /Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules
[info] ✔ functions: Using node@18 from host.
[debug] [2023-11-24T19:20:47.765Z] Could not find functions.yaml. Must use http discovery
[debug] [2023-11-24T19:20:47.768Z] Found firebase-functions binary at '/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/.bin/firebase-functions'
[info] Serving at port 8305
[debug] [2023-11-24T19:20:47.988Z] Got response from /__/functions.yaml {"endpoints":{"generateImageName":{"platform":"gcfv1","availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"serviceAccountEmail":null,"vpc":null,"eventTrigger":{"eventType":"providers/cloud.firestore/eventTypes/document.create","eventFilters":{"resource":"projects/live-demo-firebase/databases/(default)/documents/galleries/{id}"},"retry":false},"labels":{},"entryPoint":"generateImageName"},"onFileUploaded":{"platform":"gcfv1","availableMemoryMb":null,"timeoutSeconds":null,"minInstances":null,"maxInstances":null,"ingressSettings":null,"serviceAccountEmail":null,"vpc":null,"eventTrigger":{"eventType":"google.storage.object.finalize","eventFilters":{"resource":"projects/_/buckets/live-demo-firebase.appspot.com"},"retry":false},"labels":{},"entryPoint":"onFileUploaded"}},"specVersion":"v1alpha1","requiredAPIs":[]}
[info] shutdown requested via /__/quitquitquit
[info] ✔ functions: Loaded functions definitions from source: generateImageName, onFileUploaded. {"metadata":{"emulator":{"name":"functions"},"message":"Loaded functions definitions from source: generateImageName, onFileUploaded."}}
[debug] [2023-11-24T19:20:47.996Z] addFirestoreTrigger "{\"eventTrigger\":{\"eventType\":\"providers/cloud.firestore/eventTypes/document.create\",\"resource\":\"projects/live-demo-firebase/databases/(default)/documents/galleries/{id}\",\"service\":\"firestore.googleapis.com\"}}"
[debug] [2023-11-24T19:20:47.996Z] >>> [apiv2][query] PUT http://127.0.0.1:8080/emulator/v1/projects/live-demo-firebase/triggers/us-central1-generateImageName-0 [none]
[debug] [2023-11-24T19:20:47.996Z] >>> [apiv2][body] PUT http://127.0.0.1:8080/emulator/v1/projects/live-demo-firebase/triggers/us-central1-generateImageName-0 "{\"eventTrigger\":{\"eventType\":\"providers/cloud.firestore/eventTypes/document.create\",\"resource\":\"projects/live-demo-firebase/databases/(default)/documents/galleries/{id}\",\"service\":\"firestore.googleapis.com\"}}"
[debug] [2023-11-24T19:20:48.003Z] Nov 25, 2023 2:20:48 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:20:48 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:20:48.088Z] Nov 25, 2023 2:20:48 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:20:48 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:20:48.318Z] <<< [apiv2][status] PUT http://127.0.0.1:8080/emulator/v1/projects/live-demo-firebase/triggers/us-central1-generateImageName-0 200
[debug] [2023-11-24T19:20:48.318Z] <<< [apiv2][body] PUT http://127.0.0.1:8080/emulator/v1/projects/live-demo-firebase/triggers/us-central1-generateImageName-0 {}
[info] ✔ functions[us-central1-generateImageName]: firestore function initialized. {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mfirestore\u001b[22m function initialized."}}
[debug] [2023-11-24T19:20:48.318Z] addStorageTrigger {"eventTrigger":{"eventType":"google.storage.object.finalize","resource":"projects/_/buckets/live-demo-firebase.appspot.com"}}
[info] ✔ functions[us-central1-onFileUploaded]: storage function initialized. {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mstorage\u001b[22m function initialized."}}
[info]
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
│ i View Emulator UI at http://127.0.0.1:4000/ │
└─────────────────────────────────────────────────────────────┘
┌───────────┬────────────────┬─────────────────────────────────┐
│ Emulator │ Host:Port │ View in Emulator UI │
├───────────┼────────────────┼─────────────────────────────────┤
│ Functions │ 127.0.0.1:5001 │ http://127.0.0.1:4000/functions │
├───────────┼────────────────┼─────────────────────────────────┤
│ Firestore │ 127.0.0.1:8080 │ http://127.0.0.1:4000/firestore │
├───────────┼────────────────┼─────────────────────────────────┤
│ Hosting │ 127.0.0.1:5000 │ n/a │
├───────────┼────────────────┼─────────────────────────────────┤
│ Storage │ 127.0.0.1:9199 │ http://127.0.0.1:4000/storage │
└───────────┴────────────────┴─────────────────────────────────┘
Emulator Hub running at 127.0.0.1:4400
Other reserved ports: 4500, 9150
Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.
[debug] [2023-11-24T19:24:09.361Z] Nov 25, 2023 2:24:09 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel
INFO: Connected to new websocket client
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:24:09 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel\nINFO: Connected to new websocket client\n"}}
[debug] [2023-11-24T19:24:10.982Z] Nov 25, 2023 2:24:10 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler channelClosed
INFO: Websocket client disconnected
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:24:10 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler channelClosed\nINFO: Websocket client disconnected\n"}}
[debug] [2023-11-24T19:24:11.047Z] Nov 25, 2023 2:24:11 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel
INFO: Connected to new websocket client
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:24:11 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel\nINFO: Connected to new websocket client\n"}}
[debug] [2023-11-24T19:24:56.025Z] Nov 25, 2023 2:24:56 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler channelClosed
INFO: Websocket client disconnected
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:24:56 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler channelClosed\nINFO: Websocket client disconnected\n"}}
[debug] [2023-11-24T19:24:57.067Z] Nov 25, 2023 2:24:57 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel
INFO: Connected to new websocket client
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:24:57 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel\nINFO: Connected to new websocket client\n"}}
[debug] [2023-11-24T19:49:57.670Z] Nov 25, 2023 2:49:57 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:49:57 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:49:57.920Z] Nov 25, 2023 2:49:57 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:49:57 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:49:57.931Z] Nov 25, 2023 2:49:57 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:49:57 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:50:37.316Z] >>> [apiv2][query] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast [none]
[debug] [2023-11-24T19:50:37.317Z] >>> [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"eventId":"1700855437316","timestamp":"2023-11-24T19:50:37.316Z","eventType":"google.storage.object.finalize","resource":{"service":"storage.googleapis.com","name":"projects/_/buckets/live-demo-firebase.appspot.com/objects/images/","type":"storage#object"},"data":{"kind":"storage#object","name":"images/","bucket":"live-demo-firebase.appspot.com","generation":"1700855437312","metageneration":"1","contentType":"application/octet-stream","timeCreated":"2023-11-24T19:50:37.312Z","updated":"2023-11-24T19:50:37.312Z","storageClass":"STANDARD","size":"130","md5Hash":"iUpceipDkyQhwwUflucD5w==","etag":"NVDShJL8O41DMeqahYNy8aZ/EoA","crc32c":"uUdn5g==","timeStorageClassUpdated":"2023-11-24T19:50:37.312Z","id":"live-demo-firebase.appspot.com/images//1700855437312","selfLink":"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F","mediaLink":"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F?generation=1700855437312&alt=media"}}
[debug] [2023-11-24T19:50:37.323Z] [work-queue] {"queuedWork":["us-central1-onFileUploaded-0-2023-11-24T19:50:37.323Z"],"queueLength":1,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:50:37.325Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":["us-central1-onFileUploaded-0-2023-11-24T19:50:37.323Z"],"workRunningCount":1}
[debug] [2023-11-24T19:50:37.325Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:50:37.326Z] <<< [apiv2][status] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast 200
[debug] [2023-11-24T19:50:37.327Z] <<< [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"status":"multicast_acknowledged"}
[debug] [2023-11-24T19:50:37.327Z] >>> [apiv2][query] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast [none]
[debug] [2023-11-24T19:50:37.327Z] >>> [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"specversion":"1.0","id":"c4776a08-4fc2-42b1-87ea-4413a090f511","type":"google.cloud.storage.object.v1.finalized","source":"//storage.googleapis.com/projects/_/buckets/live-demo-firebase.appspot.com/objects/images/","time":"2023-11-24T19:50:37.312Z","data":{"kind":"storage#object","name":"images/","bucket":"live-demo-firebase.appspot.com","generation":"1700855437312","metageneration":"1","contentType":"application/octet-stream","timeCreated":"2023-11-24T19:50:37.312Z","updated":"2023-11-24T19:50:37.312Z","storageClass":"STANDARD","size":"130","md5Hash":"iUpceipDkyQhwwUflucD5w==","etag":"NVDShJL8O41DMeqahYNy8aZ/EoA","crc32c":"uUdn5g==","timeStorageClassUpdated":"2023-11-24T19:50:37.312Z","id":"live-demo-firebase.appspot.com/images//1700855437312","selfLink":"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F","mediaLink":"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F?generation=1700855437312&alt=media"}}
[debug] [2023-11-24T19:50:37.330Z] [work-queue] {"queuedWork":["/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0-2023-11-24T19:50:37.330Z"],"queueLength":1,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:50:37.330Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":["/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0-2023-11-24T19:50:37.330Z"],"workRunningCount":1}
[debug] [2023-11-24T19:50:37.330Z] Accepted request POST /functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0 --> us-central1-onFileUploaded-0
[debug] [2023-11-24T19:50:37.345Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2023-11-24T19:50:37.346Z] [functions] Got req.url=/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0, mapping to path=/functions/projects/ {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0, mapping to path=/functions/projects/"}}
[debug] [2023-11-24T19:50:37.352Z] [worker-pool] addWorker(us-central1-onFileUploaded) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(us-central1-onFileUploaded)"}}
[debug] [2023-11-24T19:50:37.352Z] [worker-pool] Adding worker with key us-central1-onFileUploaded, total=1 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key us-central1-onFileUploaded, total=1"}}
[debug] [2023-11-24T19:50:37.356Z] <<< [apiv2][status] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast 200
[debug] [2023-11-24T19:50:37.356Z] <<< [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"status":"multicast_acknowledged"}
[debug] [2023-11-24T19:50:37.985Z] [runtime-status] [74047] Resolved module firebase-admin {"declared":true,"installed":true,"version":"10.3.0","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"10.3.0\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js\"}"}}
[debug] [2023-11-24T19:50:37.986Z] [runtime-status] [74047] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:50:37.986Z] [runtime-status] [74047] Outgoing network have been stubbed. [{"name":"http","status":"mocked"},{"name":"http","status":"mocked"},{"name":"https","status":"mocked"},{"name":"https","status":"mocked"},{"name":"net","status":"mocked"}] {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Outgoing network have been stubbed. [{\"name\":\"http\",\"status\":\"mocked\"},{\"name\":\"http\",\"status\":\"mocked\"},{\"name\":\"https\",\"status\":\"mocked\"},{\"name\":\"https\",\"status\":\"mocked\"},{\"name\":\"net\",\"status\":\"mocked\"}]"}}
[debug] [2023-11-24T19:50:37.987Z] [runtime-status] [74047] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:50:38.114Z] [runtime-status] [74047] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Checked functions.config() {\"config\":{}}"}}
[debug] [2023-11-24T19:50:38.114Z] [runtime-status] [74047] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}}"}}
[debug] [2023-11-24T19:50:38.114Z] [runtime-status] [74047] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:50:38.115Z] [runtime-status] [74047] Resolved module firebase-admin {"declared":true,"installed":true,"version":"10.3.0","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"10.3.0\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js\"}"}}
[debug] [2023-11-24T19:50:38.116Z] [runtime-status] [74047] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:50:38.116Z] [runtime-status] [74047] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"10.3.0","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"10.3.0\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js\"}}"}}
[debug] [2023-11-24T19:50:38.117Z] [runtime-status] [74047] initializeApp(DEFAULT) {"storageBucket":"live-demo-firebase.appspot.com","projectId":"live-demo-firebase"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] initializeApp(DEFAULT) {\"storageBucket\":\"live-demo-firebase.appspot.com\",\"projectId\":\"live-demo-firebase\"}"}}
[debug] [2023-11-24T19:50:38.123Z] [runtime-status] [74047] Functions runtime initialized. {"cwd":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions","node_version":"18.17.1"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Functions runtime initialized. {\"cwd\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions\",\"node_version\":\"18.17.1\"}"}}
[debug] [2023-11-24T19:50:38.123Z] [runtime-status] [74047] Listening to port: /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/fire_emu_812dbe490b9f0b0f.sock {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] Listening to port: /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/fire_emu_812dbe490b9f0b0f.sock"}}
[debug] [2023-11-24T19:50:38.209Z] [worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: IDLE {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: IDLE"}}
[debug] [2023-11-24T19:50:38.209Z] [worker-pool] submitRequest(triggerId=us-central1-onFileUploaded) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitRequest(triggerId=us-central1-onFileUploaded)"}}
[info] i functions: Beginning execution of "us-central1-onFileUploaded" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Beginning execution of \"us-central1-onFileUploaded\""}}
[debug] [2023-11-24T19:50:38.211Z] [worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: BUSY {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: BUSY"}}
[debug] [2023-11-24T19:50:38.226Z] [runtime-status] [74047] RunBackground {"data":{"kind":"storage#object","name":"images/","bucket":"live-demo-firebase.appspot.com","generation":"1700855437312","metageneration":"1","contentType":"application/octet-stream","timeCreated":"2023-11-24T19:50:37.312Z","updated":"2023-11-24T19:50:37.312Z","storageClass":"STANDARD","size":"130","md5Hash":"iUpceipDkyQhwwUflucD5w==","etag":"NVDShJL8O41DMeqahYNy8aZ/EoA","crc32c":"uUdn5g==","timeStorageClassUpdated":"2023-11-24T19:50:37.312Z","id":"live-demo-firebase.appspot.com/images//1700855437312","selfLink":"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F","mediaLink":"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F?generation=1700855437312&alt=media"},"context":{"eventId":"1700855437316","timestamp":"2023-11-24T19:50:37.316Z","eventType":"google.storage.object.finalize","resource":{"service":"storage.googleapis.com","name":"projects/_/buckets/live-demo-firebase.appspot.com/objects/images/","type":"storage#object"}}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] RunBackground {\"data\":{\"kind\":\"storage#object\",\"name\":\"images/\",\"bucket\":\"live-demo-firebase.appspot.com\",\"generation\":\"1700855437312\",\"metageneration\":\"1\",\"contentType\":\"application/octet-stream\",\"timeCreated\":\"2023-11-24T19:50:37.312Z\",\"updated\":\"2023-11-24T19:50:37.312Z\",\"storageClass\":\"STANDARD\",\"size\":\"130\",\"md5Hash\":\"iUpceipDkyQhwwUflucD5w==\",\"etag\":\"NVDShJL8O41DMeqahYNy8aZ/EoA\",\"crc32c\":\"uUdn5g==\",\"timeStorageClassUpdated\":\"2023-11-24T19:50:37.312Z\",\"id\":\"live-demo-firebase.appspot.com/images//1700855437312\",\"selfLink\":\"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F\",\"mediaLink\":\"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2F?generation=1700855437312&alt=media\"},\"context\":{\"eventId\":\"1700855437316\",\"timestamp\":\"2023-11-24T19:50:37.316Z\",\"eventType\":\"google.storage.object.finalize\",\"resource\":{\"service\":\"storage.googleapis.com\",\"name\":\"projects/_/buckets/live-demo-firebase.appspot.com/objects/images/\",\"type\":\"storage#object\"}}}"}}
[info] > {"severity":"INFO","message":"File upload properties has been created successfully for images/"} {"user":{"severity":"INFO","message":"File upload properties has been created successfully for images/"},"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"\u001b[90m> \u001b[39m {\"severity\":\"INFO\",\"message\":\"File upload properties has been created successfully for images/\"}"}}
[debug] [2023-11-24T19:50:38.229Z] Finishing up request with event=pause {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finishing up request with event=pause"}}
[info] i functions: Finished "us-central1-onFileUploaded" in 18.139625ms {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finished \"us-central1-onFileUploaded\" in 18.139625ms"}}
[debug] [2023-11-24T19:50:38.229Z] [worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: IDLE {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: IDLE"}}
[debug] [2023-11-24T19:50:38.229Z] Finishing up request with event=finish {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finishing up request with event=finish"}}
[debug] [2023-11-24T19:50:38.229Z] Finishing up request with event=close {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finishing up request with event=close"}}
[debug] [2023-11-24T19:50:38.229Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:50:43.287Z] Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:50:43.473Z] Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:50:43.513Z] Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:50:43.524Z] Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:50:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:51:43.547Z] Nov 25, 2023 2:51:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:51:43 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:51:44.125Z] Nov 25, 2023 2:51:44 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:51:44 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:51:44.129Z] Nov 25, 2023 2:51:44 AM com.google.cloud.datastore.emulator.firestore.webchannel.FirestoreV1WebChannelAdapter$FirestoreListenHandler onClose
INFO: channel closed
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:51:44 AM com.google.cloud.datastore.emulator.firestore.webchannel.FirestoreV1WebChannelAdapter$FirestoreListenHandler onClose\nINFO: channel closed\n"}}
[info] i storage: Change detected, updating rules for Cloud Storage... {"metadata":{"emulator":{"name":"storage"},"message":"Change detected, updating rules for Cloud Storage..."}}
[debug] [2023-11-24T19:51:59.168Z] Nov 25, 2023 2:51:59 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:51:59 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:51:59.190Z] Nov 25, 2023 2:51:59 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:51:59 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:51:59.197Z] Nov 25, 2023 2:51:59 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:51:59 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:00.146Z] Nov 25, 2023 2:53:00 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:00 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:00.153Z] Nov 25, 2023 2:53:00 AM com.google.cloud.datastore.emulator.firestore.webchannel.FirestoreV1WebChannelAdapter$FirestoreListenHandler onClose
INFO: channel closed
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:00 AM com.google.cloud.datastore.emulator.firestore.webchannel.FirestoreV1WebChannelAdapter$FirestoreListenHandler onClose\nINFO: channel closed\n"}}
[debug] [2023-11-24T19:53:19.175Z] Nov 25, 2023 2:53:19 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:19 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:19.197Z] Nov 25, 2023 2:53:19 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:19 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:19.209Z] Nov 25, 2023 2:53:19 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:19 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:30.059Z] Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:30.238Z] Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:30.256Z] Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:30.265Z] Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:30 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:34.978Z] >>> [apiv2][query] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast [none]
[debug] [2023-11-24T19:53:34.978Z] >>> [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"eventId":"1700855614977","timestamp":"2023-11-24T19:53:34.977Z","eventType":"google.storage.object.finalize","resource":{"service":"storage.googleapis.com","name":"projects/_/buckets/live-demo-firebase.appspot.com/objects/images/firebase-icon.png","type":"storage#object"},"data":{"kind":"storage#object","name":"images/firebase-icon.png","bucket":"live-demo-firebase.appspot.com","generation":"1700855614913","metageneration":"1","contentType":"image/*","timeCreated":"2023-11-24T19:53:34.913Z","updated":"2023-11-24T19:53:34.913Z","storageClass":"STANDARD","size":"112996","md5Hash":"9IH4KH2g+vtU4gX9e14ECw==","etag":"zuPj9y+OzXlP+q74QI98y0np2Fo","metadata":{"firebaseStorageDownloadTokens":"29040a32-bb32-43ba-b504-19b77a7b1e8a"},"crc32c":"C/8kZw==","timeStorageClassUpdated":"2023-11-24T19:53:34.913Z","id":"live-demo-firebase.appspot.com/images/firebase-icon.png/1700855614913","selfLink":"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png","mediaLink":"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png?generation=1700855614913&alt=media"}}
[debug] [2023-11-24T19:53:34.980Z] [work-queue] {"queuedWork":["us-central1-onFileUploaded-0-2023-11-24T19:53:34.980Z"],"queueLength":1,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:53:34.980Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":["us-central1-onFileUploaded-0-2023-11-24T19:53:34.980Z"],"workRunningCount":1}
[debug] [2023-11-24T19:53:34.980Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:53:34.981Z] <<< [apiv2][status] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast 200
[debug] [2023-11-24T19:53:34.981Z] <<< [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"status":"multicast_acknowledged"}
[debug] [2023-11-24T19:53:34.981Z] >>> [apiv2][query] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast [none]
[debug] [2023-11-24T19:53:34.981Z] >>> [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"specversion":"1.0","id":"d1a79160-dc0a-448e-ab8e-d241569c8ed0","type":"google.cloud.storage.object.v1.finalized","source":"//storage.googleapis.com/projects/_/buckets/live-demo-firebase.appspot.com/objects/images/firebase-icon.png","time":"2023-11-24T19:53:34.913Z","data":{"kind":"storage#object","name":"images/firebase-icon.png","bucket":"live-demo-firebase.appspot.com","generation":"1700855614913","metageneration":"1","contentType":"image/*","timeCreated":"2023-11-24T19:53:34.913Z","updated":"2023-11-24T19:53:34.913Z","storageClass":"STANDARD","size":"112996","md5Hash":"9IH4KH2g+vtU4gX9e14ECw==","etag":"zuPj9y+OzXlP+q74QI98y0np2Fo","metadata":{"firebaseStorageDownloadTokens":"29040a32-bb32-43ba-b504-19b77a7b1e8a"},"crc32c":"C/8kZw==","timeStorageClassUpdated":"2023-11-24T19:53:34.913Z","id":"live-demo-firebase.appspot.com/images/firebase-icon.png/1700855614913","selfLink":"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png","mediaLink":"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png?generation=1700855614913&alt=media"}}
[debug] [2023-11-24T19:53:34.982Z] [work-queue] {"queuedWork":["/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0-2023-11-24T19:53:34.982Z"],"queueLength":1,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:53:34.982Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":["/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0-2023-11-24T19:53:34.982Z"],"workRunningCount":1}
[debug] [2023-11-24T19:53:34.982Z] Accepted request POST /functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0 --> us-central1-onFileUploaded-0
[debug] [2023-11-24T19:53:34.985Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2023-11-24T19:53:34.985Z] [functions] Got req.url=/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0, mapping to path=/functions/projects/ {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/functions/projects/live-demo-firebase/triggers/us-central1-onFileUploaded-0, mapping to path=/functions/projects/"}}
[debug] [2023-11-24T19:53:34.985Z] [worker-pool] submitRequest(triggerId=us-central1-onFileUploaded) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitRequest(triggerId=us-central1-onFileUploaded)"}}
[info] i functions: Beginning execution of "us-central1-onFileUploaded" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Beginning execution of \"us-central1-onFileUploaded\""}}
[debug] [2023-11-24T19:53:34.986Z] [worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: BUSY {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: BUSY"}}
[debug] [2023-11-24T19:53:34.987Z] <<< [apiv2][status] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast 200
[debug] [2023-11-24T19:53:34.987Z] <<< [apiv2][body] POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/trigger_multicast {"status":"multicast_acknowledged"}
[debug] [2023-11-24T19:53:34.994Z] [runtime-status] [74047] RunBackground {"data":{"kind":"storage#object","name":"images/firebase-icon.png","bucket":"live-demo-firebase.appspot.com","generation":"1700855614913","metageneration":"1","contentType":"image/*","timeCreated":"2023-11-24T19:53:34.913Z","updated":"2023-11-24T19:53:34.913Z","storageClass":"STANDARD","size":"112996","md5Hash":"9IH4KH2g+vtU4gX9e14ECw==","etag":"zuPj9y+OzXlP+q74QI98y0np2Fo","metadata":{"firebaseStorageDownloadTokens":"29040a32-bb32-43ba-b504-19b77a7b1e8a"},"crc32c":"C/8kZw==","timeStorageClassUpdated":"2023-11-24T19:53:34.913Z","id":"live-demo-firebase.appspot.com/images/firebase-icon.png/1700855614913","selfLink":"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png","mediaLink":"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png?generation=1700855614913&alt=media"},"context":{"eventId":"1700855614977","timestamp":"2023-11-24T19:53:34.977Z","eventType":"google.storage.object.finalize","resource":{"service":"storage.googleapis.com","name":"projects/_/buckets/live-demo-firebase.appspot.com/objects/images/firebase-icon.png","type":"storage#object"}}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[runtime-status] [74047] RunBackground {\"data\":{\"kind\":\"storage#object\",\"name\":\"images/firebase-icon.png\",\"bucket\":\"live-demo-firebase.appspot.com\",\"generation\":\"1700855614913\",\"metageneration\":\"1\",\"contentType\":\"image/*\",\"timeCreated\":\"2023-11-24T19:53:34.913Z\",\"updated\":\"2023-11-24T19:53:34.913Z\",\"storageClass\":\"STANDARD\",\"size\":\"112996\",\"md5Hash\":\"9IH4KH2g+vtU4gX9e14ECw==\",\"etag\":\"zuPj9y+OzXlP+q74QI98y0np2Fo\",\"metadata\":{\"firebaseStorageDownloadTokens\":\"29040a32-bb32-43ba-b504-19b77a7b1e8a\"},\"crc32c\":\"C/8kZw==\",\"timeStorageClassUpdated\":\"2023-11-24T19:53:34.913Z\",\"id\":\"live-demo-firebase.appspot.com/images/firebase-icon.png/1700855614913\",\"selfLink\":\"http://127.0.0.1:9199/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png\",\"mediaLink\":\"http://127.0.0.1:9199/download/storage/v1/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png?generation=1700855614913&alt=media\"},\"context\":{\"eventId\":\"1700855614977\",\"timestamp\":\"2023-11-24T19:53:34.977Z\",\"eventType\":\"google.storage.object.finalize\",\"resource\":{\"service\":\"storage.googleapis.com\",\"name\":\"projects/_/buckets/live-demo-firebase.appspot.com/objects/images/firebase-icon.png\",\"type\":\"storage#object\"}}}"}}
[info] > {"severity":"INFO","message":"File upload properties has been created successfully for images/firebase-icon.png"} {"user":{"severity":"INFO","message":"File upload properties has been created successfully for images/firebase-icon.png"},"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"\u001b[90m> \u001b[39m {\"severity\":\"INFO\",\"message\":\"File upload properties has been created successfully for images/firebase-icon.png\"}"}}
[debug] [2023-11-24T19:53:34.995Z] Finishing up request with event=pause {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finishing up request with event=pause"}}
[info] i functions: Finished "us-central1-onFileUploaded" in 9.799667ms {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finished \"us-central1-onFileUploaded\" in 9.799667ms"}}
[debug] [2023-11-24T19:53:34.996Z] [worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: IDLE {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"[worker-us-central1-onFileUploaded-4b98cf0d-c834-4b60-af5f-b0fb347573f4]: IDLE"}}
[debug] [2023-11-24T19:53:34.996Z] Finishing up request with event=finish {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finishing up request with event=finish"}}
[debug] [2023-11-24T19:53:34.996Z] Finishing up request with event=close {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-onFileUploaded"},"extension":{},"message":"Finishing up request with event=close"}}
[debug] [2023-11-24T19:53:34.996Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:53:34.999Z] Nov 25, 2023 2:53:34 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:34 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:35.012Z] Nov 25, 2023 2:53:35 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:35 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:35.017Z] Nov 25, 2023 2:53:35 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
INFO: Detected non-HTTP/2 connection.
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:35 AM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}}
[debug] [2023-11-24T19:53:35.112Z] [work-queue] {"queuedWork":["/functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0-2023-11-24T19:53:35.112Z"],"queueLength":1,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:53:35.112Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":["/functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0-2023-11-24T19:53:35.112Z"],"workRunningCount":1}
[debug] [2023-11-24T19:53:35.112Z] Accepted request POST /functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0 --> us-central1-generateImageName-0
[debug] [2023-11-24T19:53:35.113Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2023-11-24T19:53:35.113Z] [functions] Got req.url=/functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0, mapping to path=/functions/projects/ {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0, mapping to path=/functions/projects/"}}
[debug] [2023-11-24T19:53:35.116Z] [worker-pool] addWorker(us-central1-generateImageName) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(us-central1-generateImageName)"}}
[debug] [2023-11-24T19:53:35.116Z] [worker-pool] Adding worker with key us-central1-generateImageName, total=1 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key us-central1-generateImageName, total=1"}}
[debug] [2023-11-24T19:53:35.665Z] [runtime-status] [74243] Resolved module firebase-admin {"declared":true,"installed":true,"version":"10.3.0","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"10.3.0\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js\"}"}}
[debug] [2023-11-24T19:53:35.666Z] [runtime-status] [74243] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:53:35.666Z] [runtime-status] [74243] Outgoing network have been stubbed. [{"name":"http","status":"mocked"},{"name":"http","status":"mocked"},{"name":"https","status":"mocked"},{"name":"https","status":"mocked"},{"name":"net","status":"mocked"}] {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Outgoing network have been stubbed. [{\"name\":\"http\",\"status\":\"mocked\"},{\"name\":\"http\",\"status\":\"mocked\"},{\"name\":\"https\",\"status\":\"mocked\"},{\"name\":\"https\",\"status\":\"mocked\"},{\"name\":\"net\",\"status\":\"mocked\"}]"}}
[debug] [2023-11-24T19:53:35.666Z] [runtime-status] [74243] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:53:35.773Z] [runtime-status] [74243] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Checked functions.config() {\"config\":{}}"}}
[debug] [2023-11-24T19:53:35.773Z] [runtime-status] [74243] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}}"}}
[debug] [2023-11-24T19:53:35.773Z] [runtime-status] [74243] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:53:35.774Z] [runtime-status] [74243] Resolved module firebase-admin {"declared":true,"installed":true,"version":"10.3.0","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"10.3.0\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js\"}"}}
[debug] [2023-11-24T19:53:35.775Z] [runtime-status] [74243] Resolved module firebase-functions {"declared":true,"installed":true,"version":"4.4.1","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"4.4.1\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/index.js\"}"}}
[debug] [2023-11-24T19:53:35.775Z] [runtime-status] [74243] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"10.3.0","resolution":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"10.3.0\",\"resolution\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-admin/lib/index.js\"}}"}}
[debug] [2023-11-24T19:53:35.776Z] [runtime-status] [74243] initializeApp(DEFAULT) {"storageBucket":"live-demo-firebase.appspot.com","projectId":"live-demo-firebase"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] initializeApp(DEFAULT) {\"storageBucket\":\"live-demo-firebase.appspot.com\",\"projectId\":\"live-demo-firebase\"}"}}
[debug] [2023-11-24T19:53:35.781Z] [runtime-status] [74243] Functions runtime initialized. {"cwd":"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions","node_version":"18.17.1"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Functions runtime initialized. {\"cwd\":\"/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions\",\"node_version\":\"18.17.1\"}"}}
[debug] [2023-11-24T19:53:35.781Z] [runtime-status] [74243] Listening to port: /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/fire_emu_5c3ef37eb0356c79.sock {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] Listening to port: /var/folders/bt/bnyhxl2s6b1dt8qmx372kjtr0000gn/T/fire_emu_5c3ef37eb0356c79.sock"}}
[debug] [2023-11-24T19:53:35.855Z] [worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: IDLE {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: IDLE"}}
[debug] [2023-11-24T19:53:35.855Z] [worker-pool] submitRequest(triggerId=us-central1-generateImageName) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitRequest(triggerId=us-central1-generateImageName)"}}
[info] i functions: Beginning execution of "us-central1-generateImageName" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"Beginning execution of \"us-central1-generateImageName\""}}
[debug] [2023-11-24T19:53:35.855Z] [worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: BUSY {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: BUSY"}}
[debug] [2023-11-24T19:53:35.862Z] [runtime-status] [74243] ProcessBackground: lifting resource.name from resource {"name":"projects/live-demo-firebase/databases/(default)/documents/galleries/Mg8yIfnOwTiFSdq153sP","service":"firestore.googleapis.com"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] ProcessBackground: lifting resource.name from resource {\"name\":\"projects/live-demo-firebase/databases/(default)/documents/galleries/Mg8yIfnOwTiFSdq153sP\",\"service\":\"firestore.googleapis.com\"}"}}
[debug] [2023-11-24T19:53:35.863Z] [runtime-status] [74243] RunBackground {"data":{"value":{"name":"projects/live-demo-firebase/databases/(default)/documents/galleries/Mg8yIfnOwTiFSdq153sP","fields":{"path":{"stringValue":"images/firebase-icon.png"},"comments":{"arrayValue":{}},"created_at":{"timestampValue":"2023-11-24T19:02:12.530Z"},"type":{"stringValue":"image/png"},"url":{"stringValue":"http://localhost:9199/v0/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png?alt=media&token=29040a32-bb32-43ba-b504-19b77a7b1e8a"}},"createTime":"2023-11-24T19:53:35.073801Z","updateTime":"2023-11-24T19:53:35.073801Z"},"updateMask":{}},"context":{"eventId":"973c1702-95c6-40b7-b530-05202726ce9f","timestamp":"2023-11-24T19:53:35.073Z","eventType":"providers/cloud.firestore/eventTypes/document.create","resource":"projects/live-demo-firebase/databases/(default)/documents/galleries/Mg8yIfnOwTiFSdq153sP"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[runtime-status] [74243] RunBackground {\"data\":{\"value\":{\"name\":\"projects/live-demo-firebase/databases/(default)/documents/galleries/Mg8yIfnOwTiFSdq153sP\",\"fields\":{\"path\":{\"stringValue\":\"images/firebase-icon.png\"},\"comments\":{\"arrayValue\":{}},\"created_at\":{\"timestampValue\":\"2023-11-24T19:02:12.530Z\"},\"type\":{\"stringValue\":\"image/png\"},\"url\":{\"stringValue\":\"http://localhost:9199/v0/b/live-demo-firebase.appspot.com/o/images%2Ffirebase-icon.png?alt=media&token=29040a32-bb32-43ba-b504-19b77a7b1e8a\"}},\"createTime\":\"2023-11-24T19:53:35.073801Z\",\"updateTime\":\"2023-11-24T19:53:35.073801Z\"},\"updateMask\":{}},\"context\":{\"eventId\":\"973c1702-95c6-40b7-b530-05202726ce9f\",\"timestamp\":\"2023-11-24T19:53:35.073Z\",\"eventType\":\"providers/cloud.firestore/eventTypes/document.create\",\"resource\":\"projects/live-demo-firebase/databases/(default)/documents/galleries/Mg8yIfnOwTiFSdq153sP\"}}"}}
[warn] ⚠ functions: TypeError: Cannot read properties of undefined (reading 'replace')
at sanitizeString (/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/index.js:6:17)
at /Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/index.js:19:31
at cloudFunction (/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/cloud-functions.js:79:23)
at /usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:518:16
at runFunction (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:506:15)
at runBackground (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:517:11)
at processBackground (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:501:11)
at /usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:690:27
at Layer.handle [as handle_request] (/usr/local/lib/node_modules/firebase-tools/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/local/lib/node_modules/firebase-tools/node_modules/express/lib/router/route.js:144:13) {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"TypeError: Cannot read properties of undefined (reading 'replace')\n at sanitizeString (/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/index.js:6:17)\n at /Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/index.js:19:31\n at cloudFunction (/Users/pradana/Documents/Data/Projects/Firebase/firebase-gallery/functions/node_modules/firebase-functions/lib/v1/cloud-functions.js:79:23)\n at /usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:518:16\n at runFunction (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:506:15)\n at runBackground (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:517:11)\n at processBackground (/usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:501:11)\n at /usr/local/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:690:27\n at Layer.handle [as handle_request] (/usr/local/lib/node_modules/firebase-tools/node_modules/express/lib/router/layer.js:95:5)\n at next (/usr/local/lib/node_modules/firebase-tools/node_modules/express/lib/router/route.js:144:13)"}}
[warn] ⚠ Your function was killed because it raised an unhandled error. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"Your function was killed because it raised an unhandled error."}}
[error] i Request to function failed: Error: socket hang up {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"Request to function failed: Error: socket hang up"}}
[debug] [2023-11-24T19:53:35.868Z] [work-queue] {"queuedWork":[],"queueLength":0,"runningWork":[],"workRunningCount":0}
[debug] [2023-11-24T19:53:35.868Z] [worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: exited {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: exited"}}
[debug] [2023-11-24T19:53:35.868Z] [worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: FINISHED {"metadata":{"emulator":{"name":"functions"},"function":{"name":"us-central1-generateImageName"},"extension":{},"message":"[worker-us-central1-generateImageName-2a572144-76e5-470c-98fc-73fedaa9d4f2]: FINISHED"}}
[debug] [2023-11-24T19:53:35.872Z] Nov 25, 2023 2:53:35 AM com.google.cloud.datastore.emulator.impl.events.FunctionsEmulatorEventPublisher sendHttpRequest
WARNING: Unsuccessful HTTP response when publishing event for projects/live-demo-firebase/triggers/us-central1-generateImageName-0: 500 Internal Server Error
POST http://127.0.0.1:5001/functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0
{"code":"ECONNRESET"}
{"metadata":{"emulator":{"name":"firestore"},"message":"Nov 25, 2023 2:53:35 AM com.google.cloud.datastore.emulator.impl.events.FunctionsEmulatorEventPublisher sendHttpRequest\nWARNING: Unsuccessful HTTP response when publishing event for projects/live-demo-firebase/triggers/us-central1-generateImageName-0: 500 Internal Server Error\nPOST http://127.0.0.1:5001/functions/projects/live-demo-firebase/triggers/us-central1-generateImageName-0\n{\"code\":\"ECONNRESET\"}\n"}}