-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase-debug.log
353 lines (349 loc) · 100 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
[debug] [2021-03-15T05:48:30.644Z] ----------------------------------------------------------------------
[debug] [2021-03-15T05:48:30.654Z] Command: C:\Program Files\nodejs\node.exe C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js emulators:start
[debug] [2021-03-15T05:48:30.656Z] CLI Version: 9.3.0
[debug] [2021-03-15T05:48:30.656Z] Platform: win32
[debug] [2021-03-15T05:48:30.657Z] Node Version: v14.15.0
[debug] [2021-03-15T05:48:30.797Z] Time: Mon Mar 15 2021 11:18:30 GMT+0530 (India Standard Time)
[debug] [2021-03-15T05:48:30.798Z] ----------------------------------------------------------------------
[debug] [2021-03-15T05:48:30.798Z]
[debug] [2021-03-15T05:48:30.968Z] > 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] [2021-03-15T05:48:30.971Z] > authorizing via signed-in user
[info] i emulators: Starting emulators: functions, hosting {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: functions, hosting"}}
[warn] ! emulators: It seems that you are running multiple instances of the emulator suite for project copy-d0a49. This may result in unexpected behavior.
[debug] [2021-03-15T05:48:31.234Z] [hub] writing locator at C:\Users\dell\AppData\Local\Temp\hub-copy-d0a49.json
[warn] ! functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, firestore, 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, firestore, database, pubsub\u001b[22m"}}
[warn] ! Your requested "node" version "12" doesn't match your global version "14" {"metadata":{"emulator":{"name":"functions"},"message":"Your requested \"node\" version \"12\" doesn't match your global version \"14\""}}
[debug] [2021-03-15T05:48:31.643Z] defaultcredentials: writing to file C:\Users\dell\AppData\Roaming\firebase\d_108singh_gmail.com_application_default_credentials.json
[debug] [2021-03-15T05:48:31.646Z] Setting GAC to C:\Users\dell\AppData\Roaming\firebase\d_108singh_gmail.com_application_default_credentials.json {"metadata":{"emulator":{"name":"functions"},"message":"Setting GAC to C:\\Users\\dell\\AppData\\Roaming\\firebase\\d_108singh_gmail.com_application_default_credentials.json"}}
[debug] [2021-03-15T05:48:31.649Z] > refreshing access token with scopes: []
[debug] [2021-03-15T05:48:31.650Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2021-03-15T05:48:31.655Z] Failed to get Admin SDK config for copy-d0a49, falling back to cache Failed to get Admin SDK for Firebase project copy-d0a49. Please make sure the project exists and your account has permission to access it. {"name":"FirebaseError","children":[],"exit":2,"message":"Failed to get Admin SDK for Firebase project copy-d0a49. Please make sure the project exists and your account has permission to access it.","original":{"name":"FirebaseError","children":[],"exit":1,"message":"Authentication Error: Your credentials are no longer valid. Please run \u001b[1mfirebase login --reauth\u001b[22m\n\nFor CI servers and headless environments, generate a new token with \u001b[1mfirebase login:ci\u001b[22m","status":500},"status":500}
[debug] [2021-03-15T05:48:31.666Z] > refreshing access token with scopes: []
[debug] [2021-03-15T05:48:31.667Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2021-03-15T05:48:31.670Z] fetchWebSetup error: FirebaseError: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
For CI servers and headless environments, generate a new token with firebase login:ci
[warn] ! hosting: Using web app configuration from cache.
[info] i hosting: Serving hosting files from: build {"metadata":{"emulator":{"name":"hosting"},"message":"Serving hosting files from: \u001b[1mbuild\u001b[22m"}}
[info] + hosting: Local server: http://localhost:5000 {"metadata":{"emulator":{"name":"hosting"},"message":"Local server: \u001b[4m\u001b[1mhttp://localhost:5000\u001b[22m\u001b[24m"}}
[warn] ! ui: Emulator UI unable to start on port 4000, starting on 4001 instead. {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI unable to start on port 4000, starting on 4001 instead."}}
[debug] [2021-03-15T05:48:32.066Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}}
[debug] [2021-03-15T05:48:32.066Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}}
[debug] [2021-03-15T05:48:32.067Z] Starting Emulator UI with command {"binary":"node","args":["C:\\Users\\dell\\.cache\\firebase\\emulators\\ui-v1.4.1\\server.bundle.js"],"optionalArgs":[],"joinArgs":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"C:\\\\Users\\\\dell\\\\.cache\\\\firebase\\\\emulators\\\\ui-v1.4.1\\\\server.bundle.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] [2021-03-15T05:48:32.512Z] Web / API server started at http://localhost:4001
{"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at http://localhost:4001\n"}}
[info] i functions: Watching "C:\Users\dell\Desktop\amazon-clone\functions" for Cloud Functions... {"metadata":{"emulator":{"name":"functions"},"message":"Watching \"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\" for Cloud Functions..."}}
[debug] [2021-03-15T05:48:33.486Z] [worker-pool] addWorker(~diagnostic~) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(~diagnostic~)"}}
[debug] [2021-03-15T05:48:33.487Z] [worker-pool] Adding worker with key ~diagnostic~, total=1 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key ~diagnostic~, total=1"}}
[debug] [2021-03-15T05:48:33.488Z] [worker-pool] submitWork(triggerId=) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=)"}}
[debug] [2021-03-15T05:48:33.491Z] [worker-~diagnostic~-80410ff9-fc6f-4b5f-9ae9-3c07a0d7bb47]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\9520 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-~diagnostic~-80410ff9-fc6f-4b5f-9ae9-3c07a0d7bb47]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\9520"}}
[debug] [2021-03-15T05:48:33.493Z] [worker-~diagnostic~-80410ff9-fc6f-4b5f-9ae9-3c07a0d7bb47]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-~diagnostic~-80410ff9-fc6f-4b5f-9ae9-3c07a0d7bb47]: BUSY"}}
[debug] [2021-03-15T05:48:33.937Z] [runtime-status] [9520] Functions runtime initialized. {"cwd":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions","node_version":"14.15.0"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Functions runtime initialized. {\"cwd\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\",\"node_version\":\"14.15.0\"}"}}
[debug] [2021-03-15T05:48:33.987Z] [runtime-status] [9520] Disabled runtime features: undefined {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Disabled runtime features: undefined"}}
[debug] [2021-03-15T05:48:34.743Z] [runtime-status] [9520] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:34.949Z] [runtime-status] [9520] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:34.960Z] [runtime-status] [9520] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:34.970Z] [runtime-status] [9520] 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"},"message":"[runtime-status] [9520] 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] [2021-03-15T05:48:34.973Z] [runtime-status] [9520] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:37.033Z] [runtime-status] [9520] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Checked functions.config() {\"config\":{}}"}}
[debug] [2021-03-15T05:48:37.034Z] [runtime-status] [9520] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:48:37.036Z] [runtime-status] [9520] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:37.041Z] [runtime-status] [9520] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:37.043Z] [runtime-status] [9520] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:48:37.044Z] [runtime-status] [9520] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"message":"[runtime-status] [9520] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}}"}}
[info] + functions[api]: http function initialized (http://localhost:5001/copy-d0a49/us-central1/api). {"metadata":{"emulator":{"name":"functions"},"message":"\u001b[1mhttp\u001b[22m function initialized (http://localhost:5001/copy-d0a49/us-central1/api)."}}
[info]
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
│ i View Emulator UI at http://localhost:4001 │
└─────────────────────────────────────────────────────────────┘
┌───────────┬────────────────┬─────────────────────────────────┐
│ Emulator │ Host:Port │ View in Emulator UI │
├───────────┼────────────────┼─────────────────────────────────┤
│ Functions │ localhost:5001 │ http://localhost:4001/functions │
├───────────┼────────────────┼─────────────────────────────────┤
│ Hosting │ localhost:5000 │ n/a │
└───────────┴────────────────┴─────────────────────────────────┘
Emulator Hub running at localhost:4400
Other reserved ports: 4500
Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.
[debug] [2021-03-15T05:48:40.862Z] [worker-~diagnostic~-80410ff9-fc6f-4b5f-9ae9-3c07a0d7bb47]: IDLE {"metadata":{"emulator":{"name":"functions"},"message":"[worker-~diagnostic~-80410ff9-fc6f-4b5f-9ae9-3c07a0d7bb47]: IDLE"}}
[debug] [2021-03-15T05:49:18.532Z] [work-queue] {"queueLength":1,"workRunningCount":0}
[debug] [2021-03-15T05:49:18.533Z] [work-queue] {"queueLength":0,"workRunningCount":1}
[debug] [2021-03-15T05:49:18.534Z] Accepted request POST /copy-d0a49/us-central1/api/payments/create?total=12557 --> api
[debug] [2021-03-15T05:49:18.548Z] [worker-pool] addWorker(api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(api)"}}
[debug] [2021-03-15T05:49:18.549Z] [worker-pool] Adding worker with key api, total=1 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key api, total=1"}}
[debug] [2021-03-15T05:49:18.549Z] [worker-pool] submitWork(triggerId=api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=api)"}}
[debug] [2021-03-15T05:49:18.550Z] [worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\30440 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\30440"}}
[debug] [2021-03-15T05:49:18.550Z] [worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: BUSY"}}
[debug] [2021-03-15T05:49:19.380Z] [runtime-status] [30440] Functions runtime initialized. {"cwd":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions","node_version":"14.15.0"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Functions runtime initialized. {\"cwd\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\",\"node_version\":\"14.15.0\"}"}}
[debug] [2021-03-15T05:49:19.385Z] [runtime-status] [30440] Disabled runtime features: undefined {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Disabled runtime features: undefined"}}
[debug] [2021-03-15T05:49:19.402Z] [runtime-status] [30440] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.408Z] [runtime-status] [30440] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.412Z] [runtime-status] [30440] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.416Z] [runtime-status] [30440] 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":"api"},"message":"[runtime-status] [30440] 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] [2021-03-15T05:49:19.418Z] [runtime-status] [30440] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.545Z] [runtime-status] [30440] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Checked functions.config() {\"config\":{}}"}}
[debug] [2021-03-15T05:49:19.545Z] [runtime-status] [30440] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:49:19.546Z] [runtime-status] [30440] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.549Z] [runtime-status] [30440] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.550Z] [runtime-status] [30440] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:19.551Z] [runtime-status] [30440] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:49:19.937Z] [runtime-status] [30440] Trigger "api" has been found, beginning invocation! {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Trigger \"api\" has been found, beginning invocation!"}}
[info] i functions: Beginning execution of "api" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Beginning execution of \"api\""}}
[debug] [2021-03-15T05:49:19.938Z] [runtime-status] [30440] triggerDefinition {"httpsTrigger":{},"name":"api","entryPoint":"api"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] triggerDefinition {\"httpsTrigger\":{},\"name\":\"api\",\"entryPoint\":\"api\"}"}}
[debug] [2021-03-15T05:49:19.939Z] [runtime-status] [30440] Running api in mode HTTPS {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Running api in mode HTTPS"}}
[debug] [2021-03-15T05:49:19.945Z] [runtime-status] [30440] Attempting to listen to socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\30440 {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Attempting to listen to socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\30440"}}
[debug] [2021-03-15T05:49:19.953Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2021-03-15T05:49:19.956Z] [functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=12557, mapping to path=/payments/create?total=12557 {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=12557, mapping to path=/payments/create?total=12557"}}
[debug] [2021-03-15T05:49:19.982Z] [runtime-status] [30440] Ephemeral server handling POST request {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Ephemeral server handling POST request"}}
[info] > Payment Request Recieved BOOM !! for this amount >>> 12557 {"user":"Payment Request Recieved BOOM !! for this amount >>> 12557","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Payment Request Recieved BOOM !! for this amount >>> 12557"}}
[debug] [2021-03-15T05:49:20.902Z] [runtime-status] [30440] Ephemeral server survived. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [30440] Ephemeral server survived."}}
[info] > (node:30440) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe. {"user":"(node:30440) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe.","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:30440) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe."}}
[info] > at ClientRequest.<anonymous> (C:\Users\dell\Desktop\amazon-clone\functions\node_modules\stripe\lib\StripeResource.js:486:13) {"user":" at ClientRequest.<anonymous> (C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\stripe\\lib\\StripeResource.js:486:13)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at ClientRequest.<anonymous> (C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\stripe\\lib\\StripeResource.js:486:13)"}}
[info] > at ClientRequest.emit (events.js:315:20) {"user":" at ClientRequest.emit (events.js:315:20)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at ClientRequest.emit (events.js:315:20)"}}
[info] > at TLSSocket.socketErrorListener (_http_client.js:469:9) {"user":" at TLSSocket.socketErrorListener (_http_client.js:469:9)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at TLSSocket.socketErrorListener (_http_client.js:469:9)"}}
[info] > at TLSSocket.emit (events.js:315:20) {"user":" at TLSSocket.emit (events.js:315:20)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at TLSSocket.emit (events.js:315:20)"}}
[info] > at emitErrorNT (internal/streams/destroy.js:106:8) {"user":" at emitErrorNT (internal/streams/destroy.js:106:8)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at emitErrorNT (internal/streams/destroy.js:106:8)"}}
[info] > at emitErrorCloseNT (internal/streams/destroy.js:74:3) {"user":" at emitErrorCloseNT (internal/streams/destroy.js:74:3)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at emitErrorCloseNT (internal/streams/destroy.js:74:3)"}}
[info] > at processTicksAndRejections (internal/process/task_queues.js:80:21) {"user":" at processTicksAndRejections (internal/process/task_queues.js:80:21)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at processTicksAndRejections (internal/process/task_queues.js:80:21)"}}
[info] > (Use `node --trace-warnings ...` to show where the warning was created) {"user":"(Use `node --trace-warnings ...` to show where the warning was created)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (Use `node --trace-warnings ...` to show where the warning was created)"}}
[info] > (node:30440) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) {"user":"(node:30440) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:30440) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)"}}
[info] > (node:30440) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {"user":"(node:30440) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:30440) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."}}
[debug] [2021-03-15T05:49:45.960Z] [work-queue] {"queueLength":1,"workRunningCount":1}
[debug] [2021-03-15T05:49:45.962Z] [work-queue] {"queueLength":0,"workRunningCount":2}
[debug] [2021-03-15T05:49:45.962Z] Accepted request POST /copy-d0a49/us-central1/api/payments/create?total=12557 --> api
[debug] [2021-03-15T05:49:45.983Z] [worker-pool] addWorker(api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(api)"}}
[debug] [2021-03-15T05:49:45.983Z] [worker-pool] Adding worker with key api, total=2 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key api, total=2"}}
[debug] [2021-03-15T05:49:45.984Z] [worker-pool] submitWork(triggerId=api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=api)"}}
[debug] [2021-03-15T05:49:45.984Z] [worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\10764 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\10764"}}
[debug] [2021-03-15T05:49:45.984Z] [worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: BUSY"}}
[debug] [2021-03-15T05:49:46.742Z] [runtime-status] [10764] Functions runtime initialized. {"cwd":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions","node_version":"14.15.0"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Functions runtime initialized. {\"cwd\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\",\"node_version\":\"14.15.0\"}"}}
[debug] [2021-03-15T05:49:46.747Z] [runtime-status] [10764] Disabled runtime features: undefined {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Disabled runtime features: undefined"}}
[debug] [2021-03-15T05:49:46.753Z] [runtime-status] [10764] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.756Z] [runtime-status] [10764] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.759Z] [runtime-status] [10764] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.763Z] [runtime-status] [10764] 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":"api"},"message":"[runtime-status] [10764] 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] [2021-03-15T05:49:46.764Z] [runtime-status] [10764] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.855Z] [runtime-status] [10764] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Checked functions.config() {\"config\":{}}"}}
[debug] [2021-03-15T05:49:46.856Z] [runtime-status] [10764] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:49:46.857Z] [runtime-status] [10764] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.860Z] [runtime-status] [10764] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.861Z] [runtime-status] [10764] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:49:46.861Z] [runtime-status] [10764] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:49:47.183Z] [runtime-status] [10764] Trigger "api" has been found, beginning invocation! {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Trigger \"api\" has been found, beginning invocation!"}}
[info] i functions: Beginning execution of "api" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Beginning execution of \"api\""}}
[debug] [2021-03-15T05:49:47.185Z] [runtime-status] [10764] triggerDefinition {"httpsTrigger":{},"name":"api","entryPoint":"api"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] triggerDefinition {\"httpsTrigger\":{},\"name\":\"api\",\"entryPoint\":\"api\"}"}}
[debug] [2021-03-15T05:49:47.186Z] [runtime-status] [10764] Running api in mode HTTPS {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Running api in mode HTTPS"}}
[debug] [2021-03-15T05:49:47.192Z] [runtime-status] [10764] Attempting to listen to socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\10764 {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Attempting to listen to socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\10764"}}
[debug] [2021-03-15T05:49:47.197Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2021-03-15T05:49:47.198Z] [functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=12557, mapping to path=/payments/create?total=12557 {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=12557, mapping to path=/payments/create?total=12557"}}
[debug] [2021-03-15T05:49:47.226Z] [runtime-status] [10764] Ephemeral server handling POST request {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Ephemeral server handling POST request"}}
[info] > Payment Request Recieved BOOM !! for this amount >>> 12557 {"user":"Payment Request Recieved BOOM !! for this amount >>> 12557","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Payment Request Recieved BOOM !! for this amount >>> 12557"}}
[debug] [2021-03-15T05:49:47.367Z] [runtime-status] [10764] Ephemeral server survived. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [10764] Ephemeral server survived."}}
[info] > (node:10764) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe. {"user":"(node:10764) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe.","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:10764) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe."}}
[info] > at ClientRequest.<anonymous> (C:\Users\dell\Desktop\amazon-clone\functions\node_modules\stripe\lib\StripeResource.js:486:13) {"user":" at ClientRequest.<anonymous> (C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\stripe\\lib\\StripeResource.js:486:13)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at ClientRequest.<anonymous> (C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\stripe\\lib\\StripeResource.js:486:13)"}}
[info] > at ClientRequest.emit (events.js:315:20) {"user":" at ClientRequest.emit (events.js:315:20)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at ClientRequest.emit (events.js:315:20)"}}
[info] > at TLSSocket.socketErrorListener (_http_client.js:469:9) {"user":" at TLSSocket.socketErrorListener (_http_client.js:469:9)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at TLSSocket.socketErrorListener (_http_client.js:469:9)"}}
[info] > at TLSSocket.emit (events.js:315:20) {"user":" at TLSSocket.emit (events.js:315:20)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at TLSSocket.emit (events.js:315:20)"}}
[info] > at emitErrorNT (internal/streams/destroy.js:106:8) {"user":" at emitErrorNT (internal/streams/destroy.js:106:8)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at emitErrorNT (internal/streams/destroy.js:106:8)"}}
[info] > at emitErrorCloseNT (internal/streams/destroy.js:74:3) {"user":" at emitErrorCloseNT (internal/streams/destroy.js:74:3)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at emitErrorCloseNT (internal/streams/destroy.js:74:3)"}}
[info] > at processTicksAndRejections (internal/process/task_queues.js:80:21) {"user":" at processTicksAndRejections (internal/process/task_queues.js:80:21)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at processTicksAndRejections (internal/process/task_queues.js:80:21)"}}
[info] > (Use `node --trace-warnings ...` to show where the warning was created) {"user":"(Use `node --trace-warnings ...` to show where the warning was created)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (Use `node --trace-warnings ...` to show where the warning was created)"}}
[info] > (node:10764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) {"user":"(node:10764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:10764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)"}}
[info] > (node:10764) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {"user":"(node:10764) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:10764) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."}}
[warn] ! functions: Your function timed out after ~60s. To configure this timeout, see
https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Your function timed out after ~60s. To configure this timeout, see\n https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation."}}
[info] > C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:640 {"user":"C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640\r"}}
[info] > throw new Error("Function timed out."); {"user":" throw new Error(\"Function timed out.\");\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m throw new Error(\"Function timed out.\");\r"}}
[info] > ^ {"user":" ^\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m ^\r"}}
[info] > {"user":"\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m \r"}}
[info] > Error: Function timed out. {"user":"Error: Function timed out.\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Error: Function timed out.\r"}}
[info] > at Timeout._onTimeout (C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:640:19) {"user":" at Timeout._onTimeout (C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640:19)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at Timeout._onTimeout (C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640:19)\r"}}
[info] > at listOnTimeout (internal/timers.js:554:17) {"user":" at listOnTimeout (internal/timers.js:554:17)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at listOnTimeout (internal/timers.js:554:17)\r"}}
[info] > at processTimers (internal/timers.js:497:7) {"user":" at processTimers (internal/timers.js:497:7)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at processTimers (internal/timers.js:497:7)\r"}}
[debug] [2021-03-15T05:50:20.102Z] [work-queue] {"queueLength":1,"workRunningCount":2}
[debug] [2021-03-15T05:50:20.103Z] [work-queue] {"queueLength":0,"workRunningCount":3}
[debug] [2021-03-15T05:50:20.103Z] Accepted request POST /copy-d0a49/us-central1/api/payments/create?total=10967 --> api
[debug] [2021-03-15T05:50:20.118Z] [worker-pool] addWorker(api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(api)"}}
[debug] [2021-03-15T05:50:20.118Z] [worker-pool] Adding worker with key api, total=3 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key api, total=3"}}
[debug] [2021-03-15T05:50:20.118Z] [worker-pool] submitWork(triggerId=api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=api)"}}
[debug] [2021-03-15T05:50:20.119Z] [worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\21556 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\21556"}}
[debug] [2021-03-15T05:50:20.119Z] [worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: BUSY"}}
[debug] [2021-03-15T05:50:20.120Z] [worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: exited {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: exited"}}
[debug] [2021-03-15T05:50:20.120Z] [worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: FINISHED {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-68e59f05-a510-4a83-92ac-cfabc33ac8af]: FINISHED"}}
[debug] [2021-03-15T05:50:20.120Z] [work-queue] {"queueLength":0,"workRunningCount":2}
[debug] [2021-03-15T05:50:20.665Z] [runtime-status] [21556] Functions runtime initialized. {"cwd":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions","node_version":"14.15.0"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Functions runtime initialized. {\"cwd\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\",\"node_version\":\"14.15.0\"}"}}
[debug] [2021-03-15T05:50:20.670Z] [runtime-status] [21556] Disabled runtime features: undefined {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Disabled runtime features: undefined"}}
[debug] [2021-03-15T05:50:20.677Z] [runtime-status] [21556] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.680Z] [runtime-status] [21556] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.683Z] [runtime-status] [21556] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.686Z] [runtime-status] [21556] 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":"api"},"message":"[runtime-status] [21556] 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] [2021-03-15T05:50:20.687Z] [runtime-status] [21556] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.781Z] [runtime-status] [21556] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Checked functions.config() {\"config\":{}}"}}
[debug] [2021-03-15T05:50:20.781Z] [runtime-status] [21556] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:50:20.782Z] [runtime-status] [21556] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.784Z] [runtime-status] [21556] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.785Z] [runtime-status] [21556] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:50:20.785Z] [runtime-status] [21556] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:50:21.112Z] [runtime-status] [21556] Trigger "api" has been found, beginning invocation! {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Trigger \"api\" has been found, beginning invocation!"}}
[info] i functions: Beginning execution of "api" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Beginning execution of \"api\""}}
[debug] [2021-03-15T05:50:21.115Z] [runtime-status] [21556] triggerDefinition {"httpsTrigger":{},"name":"api","entryPoint":"api"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] triggerDefinition {\"httpsTrigger\":{},\"name\":\"api\",\"entryPoint\":\"api\"}"}}
[debug] [2021-03-15T05:50:21.116Z] [runtime-status] [21556] Running api in mode HTTPS {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Running api in mode HTTPS"}}
[debug] [2021-03-15T05:50:21.134Z] [runtime-status] [21556] Attempting to listen to socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\21556 {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Attempting to listen to socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\21556"}}
[debug] [2021-03-15T05:50:21.142Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2021-03-15T05:50:21.142Z] [functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=10967, mapping to path=/payments/create?total=10967 {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=10967, mapping to path=/payments/create?total=10967"}}
[debug] [2021-03-15T05:50:21.159Z] [runtime-status] [21556] Ephemeral server handling POST request {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Ephemeral server handling POST request"}}
[info] > Payment Request Recieved BOOM !! for this amount >>> 10967 {"user":"Payment Request Recieved BOOM !! for this amount >>> 10967","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Payment Request Recieved BOOM !! for this amount >>> 10967"}}
[debug] [2021-03-15T05:50:21.311Z] [runtime-status] [21556] Ephemeral server survived. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [21556] Ephemeral server survived."}}
[info] > (node:21556) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe. {"user":"(node:21556) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe.","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:21556) UnhandledPromiseRejectionWarning: Error: An error occurred with our connection to Stripe."}}
[info] > at ClientRequest.<anonymous> (C:\Users\dell\Desktop\amazon-clone\functions\node_modules\stripe\lib\StripeResource.js:486:13) {"user":" at ClientRequest.<anonymous> (C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\stripe\\lib\\StripeResource.js:486:13)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at ClientRequest.<anonymous> (C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\stripe\\lib\\StripeResource.js:486:13)"}}
[info] > at ClientRequest.emit (events.js:315:20) {"user":" at ClientRequest.emit (events.js:315:20)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at ClientRequest.emit (events.js:315:20)"}}
[info] > at TLSSocket.socketErrorListener (_http_client.js:469:9) {"user":" at TLSSocket.socketErrorListener (_http_client.js:469:9)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at TLSSocket.socketErrorListener (_http_client.js:469:9)"}}
[info] > at TLSSocket.emit (events.js:315:20) {"user":" at TLSSocket.emit (events.js:315:20)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at TLSSocket.emit (events.js:315:20)"}}
[info] > at emitErrorNT (internal/streams/destroy.js:106:8) {"user":" at emitErrorNT (internal/streams/destroy.js:106:8)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at emitErrorNT (internal/streams/destroy.js:106:8)"}}
[info] > at emitErrorCloseNT (internal/streams/destroy.js:74:3) {"user":" at emitErrorCloseNT (internal/streams/destroy.js:74:3)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at emitErrorCloseNT (internal/streams/destroy.js:74:3)"}}
[info] > at processTicksAndRejections (internal/process/task_queues.js:80:21) {"user":" at processTicksAndRejections (internal/process/task_queues.js:80:21)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at processTicksAndRejections (internal/process/task_queues.js:80:21)"}}
[info] > (Use `node --trace-warnings ...` to show where the warning was created) {"user":"(Use `node --trace-warnings ...` to show where the warning was created)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (Use `node --trace-warnings ...` to show where the warning was created)"}}
[info] > (node:21556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) {"user":"(node:21556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:21556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)"}}
[info] > (node:21556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {"user":"(node:21556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m (node:21556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."}}
[warn] ! functions: Your function timed out after ~60s. To configure this timeout, see
https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Your function timed out after ~60s. To configure this timeout, see\n https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation."}}
[info] > C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:640 {"user":"C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640\r"}}
[info] > throw new Error("Function timed out."); {"user":" throw new Error(\"Function timed out.\");\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m throw new Error(\"Function timed out.\");\r"}}
[info] > ^ {"user":" ^\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m ^\r"}}
[info] > {"user":"\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m \r"}}
[info] > Error: Function timed out. {"user":"Error: Function timed out.\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Error: Function timed out.\r"}}
[info] > at Timeout._onTimeout (C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:640:19) {"user":" at Timeout._onTimeout (C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640:19)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at Timeout._onTimeout (C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640:19)\r"}}
[info] > at listOnTimeout (internal/timers.js:554:17) {"user":" at listOnTimeout (internal/timers.js:554:17)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at listOnTimeout (internal/timers.js:554:17)\r"}}
[info] > at processTimers (internal/timers.js:497:7) {"user":" at processTimers (internal/timers.js:497:7)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at processTimers (internal/timers.js:497:7)\r"}}
[debug] [2021-03-15T05:50:47.232Z] [worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: exited {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: exited"}}
[debug] [2021-03-15T05:50:47.232Z] [worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: FINISHED {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-71b94337-3826-4e90-8466-614ec950d5d0]: FINISHED"}}
[debug] [2021-03-15T05:50:47.232Z] [work-queue] {"queueLength":0,"workRunningCount":1}
[warn] ! functions: Your function timed out after ~60s. To configure this timeout, see
https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Your function timed out after ~60s. To configure this timeout, see\n https://firebase.google.com/docs/functions/manage-functions#set_timeout_and_memory_allocation."}}
[info] > C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:640 {"user":"C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640\r"}}
[info] > throw new Error("Function timed out."); {"user":" throw new Error(\"Function timed out.\");\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m throw new Error(\"Function timed out.\");\r"}}
[info] > ^ {"user":" ^\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m ^\r"}}
[info] > {"user":"\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m \r"}}
[info] > Error: Function timed out. {"user":"Error: Function timed out.\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Error: Function timed out.\r"}}
[info] > at Timeout._onTimeout (C:\Users\dell\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:640:19) {"user":" at Timeout._onTimeout (C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640:19)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at Timeout._onTimeout (C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\lib\\emulator\\functionsEmulatorRuntime.js:640:19)\r"}}
[info] > at listOnTimeout (internal/timers.js:554:17) {"user":" at listOnTimeout (internal/timers.js:554:17)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at listOnTimeout (internal/timers.js:554:17)\r"}}
[info] > at processTimers (internal/timers.js:497:7) {"user":" at processTimers (internal/timers.js:497:7)\r","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m at processTimers (internal/timers.js:497:7)\r"}}
[debug] [2021-03-15T05:51:21.174Z] [worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: exited {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: exited"}}
[debug] [2021-03-15T05:51:21.175Z] [worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: FINISHED {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-6722d5bf-963b-42fb-b433-6f6b8f858f50]: FINISHED"}}
[debug] [2021-03-15T05:51:21.175Z] [work-queue] {"queueLength":0,"workRunningCount":0}
[debug] [2021-03-15T05:51:40.091Z] [work-queue] {"queueLength":1,"workRunningCount":0}
[debug] [2021-03-15T05:51:40.091Z] [work-queue] {"queueLength":0,"workRunningCount":1}
[debug] [2021-03-15T05:51:40.091Z] Accepted request POST /copy-d0a49/us-central1/api/payments/create?total=10967 --> api
[debug] [2021-03-15T05:51:40.092Z] [worker-pool] Cleaned up workers for api: 3 --> 0 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Cleaned up workers for api: 3 --> 0"}}
[debug] [2021-03-15T05:51:40.232Z] [worker-pool] addWorker(api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(api)"}}
[debug] [2021-03-15T05:51:40.232Z] [worker-pool] Adding worker with key api, total=1 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key api, total=1"}}
[debug] [2021-03-15T05:51:40.233Z] [worker-pool] submitWork(triggerId=api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=api)"}}
[debug] [2021-03-15T05:51:40.233Z] [worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\12216 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\12216"}}
[debug] [2021-03-15T05:51:40.234Z] [worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: BUSY"}}
[debug] [2021-03-15T05:51:41.137Z] [runtime-status] [12216] Functions runtime initialized. {"cwd":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions","node_version":"14.15.0"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Functions runtime initialized. {\"cwd\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\",\"node_version\":\"14.15.0\"}"}}
[debug] [2021-03-15T05:51:41.142Z] [runtime-status] [12216] Disabled runtime features: undefined {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Disabled runtime features: undefined"}}
[debug] [2021-03-15T05:51:41.148Z] [runtime-status] [12216] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.153Z] [runtime-status] [12216] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.157Z] [runtime-status] [12216] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.160Z] [runtime-status] [12216] 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":"api"},"message":"[runtime-status] [12216] 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] [2021-03-15T05:51:41.162Z] [runtime-status] [12216] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.274Z] [runtime-status] [12216] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Checked functions.config() {\"config\":{}}"}}
[debug] [2021-03-15T05:51:41.275Z] [runtime-status] [12216] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:51:41.275Z] [runtime-status] [12216] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.277Z] [runtime-status] [12216] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.278Z] [runtime-status] [12216] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:41.279Z] [runtime-status] [12216] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:51:41.610Z] [runtime-status] [12216] Trigger "api" has been found, beginning invocation! {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Trigger \"api\" has been found, beginning invocation!"}}
[info] i functions: Beginning execution of "api" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Beginning execution of \"api\""}}
[debug] [2021-03-15T05:51:41.612Z] [runtime-status] [12216] triggerDefinition {"httpsTrigger":{},"name":"api","entryPoint":"api"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] triggerDefinition {\"httpsTrigger\":{},\"name\":\"api\",\"entryPoint\":\"api\"}"}}
[debug] [2021-03-15T05:51:41.612Z] [runtime-status] [12216] Running api in mode HTTPS {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Running api in mode HTTPS"}}
[debug] [2021-03-15T05:51:41.619Z] [runtime-status] [12216] Attempting to listen to socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\12216 {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Attempting to listen to socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\12216"}}
[debug] [2021-03-15T05:51:41.626Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2021-03-15T05:51:41.627Z] [functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=10967, mapping to path=/payments/create?total=10967 {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=10967, mapping to path=/payments/create?total=10967"}}
[debug] [2021-03-15T05:51:41.672Z] [runtime-status] [12216] Ephemeral server handling POST request {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Ephemeral server handling POST request"}}
[info] > Payment Request Recieved BOOM !! for this amount >>> 10967 {"user":"Payment Request Recieved BOOM !! for this amount >>> 10967","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Payment Request Recieved BOOM !! for this amount >>> 10967"}}
[debug] [2021-03-15T05:51:43.777Z] [runtime-status] [12216] Ephemeral server survived. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Ephemeral server survived."}}
[debug] [2021-03-15T05:51:44.386Z] [work-queue] {"queueLength":1,"workRunningCount":1}
[debug] [2021-03-15T05:51:44.390Z] [work-queue] {"queueLength":0,"workRunningCount":2}
[debug] [2021-03-15T05:51:44.390Z] Accepted request POST /copy-d0a49/us-central1/api/payments/create?total=10967 --> api
[debug] [2021-03-15T05:51:44.556Z] [worker-pool] addWorker(api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] addWorker(api)"}}
[debug] [2021-03-15T05:51:44.557Z] [worker-pool] Adding worker with key api, total=2 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] Adding worker with key api, total=2"}}
[debug] [2021-03-15T05:51:44.557Z] [worker-pool] submitWork(triggerId=api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=api)"}}
[debug] [2021-03-15T05:51:44.557Z] [worker-api-66833e93-c3b9-482f-b91c-6922bf7e564f]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\25584 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-66833e93-c3b9-482f-b91c-6922bf7e564f]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\25584"}}
[debug] [2021-03-15T05:51:44.558Z] [worker-api-66833e93-c3b9-482f-b91c-6922bf7e564f]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-66833e93-c3b9-482f-b91c-6922bf7e564f]: BUSY"}}
[info] i functions: Finished "api" in ~2s {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Finished \"api\" in ~2s"}}
[debug] [2021-03-15T05:51:44.812Z] [worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: IDLE {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: IDLE"}}
[debug] [2021-03-15T05:51:44.813Z] [work-queue] {"queueLength":0,"workRunningCount":1}
[debug] [2021-03-15T05:51:45.776Z] [runtime-status] [25584] Functions runtime initialized. {"cwd":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions","node_version":"14.15.0"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Functions runtime initialized. {\"cwd\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\",\"node_version\":\"14.15.0\"}"}}
[debug] [2021-03-15T05:51:45.780Z] [runtime-status] [25584] Disabled runtime features: undefined {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Disabled runtime features: undefined"}}
[debug] [2021-03-15T05:51:45.785Z] [runtime-status] [25584] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.788Z] [runtime-status] [25584] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.792Z] [runtime-status] [25584] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.796Z] [runtime-status] [25584] 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":"api"},"message":"[runtime-status] [25584] 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] [2021-03-15T05:51:45.802Z] [runtime-status] [25584] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.984Z] [runtime-status] [25584] Checked functions.config() {"config":{}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Checked functions.config() {\"config\":{}}"}}
[debug] [2021-03-15T05:51:45.985Z] [runtime-status] [25584] firebase-functions has been stubbed. {"functionsResolution":{"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] firebase-functions has been stubbed. {\"functionsResolution\":{\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:51:45.986Z] [runtime-status] [25584] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.991Z] [runtime-status] [25584] Resolved module firebase-admin {"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-admin {\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.992Z] [runtime-status] [25584] Resolved module firebase-functions {"declared":true,"installed":true,"version":"3.13.1","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-functions\\lib\\index.js"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Resolved module firebase-functions {\"declared\":true,\"installed\":true,\"version\":\"3.13.1\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-functions\\\\lib\\\\index.js\"}"}}
[debug] [2021-03-15T05:51:45.993Z] [runtime-status] [25584] firebase-admin has been stubbed. {"adminResolution":{"declared":true,"installed":true,"version":"9.4.2","resolution":"C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\node_modules\\firebase-admin\\lib\\index.js"}} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] firebase-admin has been stubbed. {\"adminResolution\":{\"declared\":true,\"installed\":true,\"version\":\"9.4.2\",\"resolution\":\"C:\\\\Users\\\\dell\\\\Desktop\\\\amazon-clone\\\\functions\\\\node_modules\\\\firebase-admin\\\\lib\\\\index.js\"}}"}}
[debug] [2021-03-15T05:51:46.349Z] [runtime-status] [25584] Trigger "api" has been found, beginning invocation! {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Trigger \"api\" has been found, beginning invocation!"}}
[info] i functions: Beginning execution of "api" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Beginning execution of \"api\""}}
[debug] [2021-03-15T05:51:46.351Z] [runtime-status] [25584] triggerDefinition {"httpsTrigger":{},"name":"api","entryPoint":"api"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] triggerDefinition {\"httpsTrigger\":{},\"name\":\"api\",\"entryPoint\":\"api\"}"}}
[debug] [2021-03-15T05:51:46.351Z] [runtime-status] [25584] Running api in mode HTTPS {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Running api in mode HTTPS"}}
[debug] [2021-03-15T05:51:46.358Z] [runtime-status] [25584] Attempting to listen to socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\25584 {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Attempting to listen to socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\25584"}}
[debug] [2021-03-15T05:51:46.366Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2021-03-15T05:51:46.367Z] [functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=10967, mapping to path=/payments/create?total=10967 {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=10967, mapping to path=/payments/create?total=10967"}}
[debug] [2021-03-15T05:51:46.387Z] [runtime-status] [25584] Ephemeral server handling POST request {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Ephemeral server handling POST request"}}
[info] > Payment Request Recieved BOOM !! for this amount >>> 10967 {"user":"Payment Request Recieved BOOM !! for this amount >>> 10967","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Payment Request Recieved BOOM !! for this amount >>> 10967"}}
[debug] [2021-03-15T05:51:46.615Z] [runtime-status] [25584] Ephemeral server survived. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [25584] Ephemeral server survived."}}
[info] i functions: Finished "api" in ~1s {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Finished \"api\" in ~1s"}}
[debug] [2021-03-15T05:51:47.666Z] [worker-api-66833e93-c3b9-482f-b91c-6922bf7e564f]: IDLE {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-66833e93-c3b9-482f-b91c-6922bf7e564f]: IDLE"}}
[debug] [2021-03-15T05:51:47.667Z] [work-queue] {"queueLength":0,"workRunningCount":0}
[debug] [2021-03-15T05:52:06.081Z] [work-queue] {"queueLength":1,"workRunningCount":0}
[debug] [2021-03-15T05:52:06.083Z] [work-queue] {"queueLength":0,"workRunningCount":1}
[debug] [2021-03-15T05:52:06.083Z] Accepted request POST /copy-d0a49/us-central1/api/payments/create?total=31014 --> api
[debug] [2021-03-15T05:52:06.084Z] [worker-pool] submitWork(triggerId=api) {"metadata":{"emulator":{"name":"functions"},"message":"[worker-pool] submitWork(triggerId=api)"}}
[debug] [2021-03-15T05:52:06.085Z] [worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: Assigning socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\12216 {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: Assigning socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\12216"}}
[debug] [2021-03-15T05:52:06.086Z] [worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: BUSY {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: BUSY"}}
[debug] [2021-03-15T05:52:06.105Z] [runtime-status] [12216] Trigger "api" has been found, beginning invocation! {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Trigger \"api\" has been found, beginning invocation!"}}
[info] i functions: Beginning execution of "api" {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Beginning execution of \"api\""}}
[debug] [2021-03-15T05:52:06.108Z] [runtime-status] [12216] triggerDefinition {"httpsTrigger":{},"name":"api","entryPoint":"api"} {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] triggerDefinition {\"httpsTrigger\":{},\"name\":\"api\",\"entryPoint\":\"api\"}"}}
[debug] [2021-03-15T05:52:06.108Z] [runtime-status] [12216] Running api in mode HTTPS {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Running api in mode HTTPS"}}
[debug] [2021-03-15T05:52:06.109Z] [runtime-status] [12216] Attempting to listen to socketPath: \\?\pipe\C:\Users\dell\Desktop\amazon-clone\functions\12216 {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Attempting to listen to socketPath: \\\\?\\pipe\\C:\\Users\\dell\\Desktop\\amazon-clone\\functions\\12216"}}
[debug] [2021-03-15T05:52:06.113Z] [functions] Runtime ready! Sending request! {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Runtime ready! Sending request!"}}
[debug] [2021-03-15T05:52:06.115Z] [functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=31014, mapping to path=/payments/create?total=31014 {"metadata":{"emulator":{"name":"functions"},"message":"[functions] Got req.url=/copy-d0a49/us-central1/api/payments/create?total=31014, mapping to path=/payments/create?total=31014"}}
[debug] [2021-03-15T05:52:06.136Z] [runtime-status] [12216] Ephemeral server handling POST request {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Ephemeral server handling POST request"}}
[info] > Payment Request Recieved BOOM !! for this amount >>> 31014 {"user":"Payment Request Recieved BOOM !! for this amount >>> 31014","metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"\u001b[90m> \u001b[39m Payment Request Recieved BOOM !! for this amount >>> 31014"}}
[debug] [2021-03-15T05:52:06.143Z] [runtime-status] [12216] Ephemeral server survived. {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"[runtime-status] [12216] Ephemeral server survived."}}
[info] i functions: Finished "api" in ~1s {"metadata":{"emulator":{"name":"functions"},"function":{"name":"api"},"message":"Finished \"api\" in ~1s"}}
[debug] [2021-03-15T05:52:06.636Z] [worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: IDLE {"metadata":{"emulator":{"name":"functions"},"message":"[worker-api-422fb0dd-d282-41ac-bde2-d02889362f55]: IDLE"}}
[debug] [2021-03-15T05:52:06.637Z] [work-queue] {"queueLength":0,"workRunningCount":0}