質問編集履歴
4
エラー文をより多い分量でコピペして書き換えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,40 @@
|
|
17
17
|
⚠ functions[helloWorld(us-central1)]: Deployment error.
|
18
18
|
|
19
19
|
Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
|
20
|
+
|
21
|
+
⚠ functions[addMessage(us-central1)]: Deployment error.
|
22
|
+
|
23
|
+
Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
Functions deploy had errors with the following functions:
|
30
|
+
|
31
|
+
addMessage
|
32
|
+
|
33
|
+
helloWorld
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
To try redeploying those functions, run:
|
40
|
+
|
41
|
+
firebase deploy --only "functions:addMessage,functions:helloWorld"
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
To continue deploying other features (such as database), run:
|
48
|
+
|
49
|
+
firebase deploy --except functions
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
Error: Functions did not deploy properly.
|
20
54
|
|
21
55
|
```
|
22
56
|
|
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,10 +18,6 @@
|
|
18
18
|
|
19
19
|
Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
|
20
20
|
|
21
|
-
⚠ functions[addMessage(us-central1)]: Deployment error.
|
22
|
-
|
23
|
-
Function failed on loading user code. This is likely due to a bug in the user code. Error message: Error: please examine your function logs to see the error cause: https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
|
24
|
-
|
25
21
|
```
|
26
22
|
|
27
23
|
|
@@ -32,13 +28,9 @@
|
|
32
28
|
|
33
29
|
```js
|
34
30
|
|
35
|
-
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
|
36
|
-
|
37
31
|
const functions = require('firebase-functions');
|
38
32
|
|
39
33
|
|
40
|
-
|
41
|
-
// The Firebase Admin SDK to access Firestore.
|
42
34
|
|
43
35
|
const admin = require('firebase-admin');
|
44
36
|
|
@@ -58,23 +50,11 @@
|
|
58
50
|
|
59
51
|
|
60
52
|
|
61
|
-
|
62
|
-
|
63
|
-
// Take the text parameter passed to this HTTP endpoint and insert it into
|
64
|
-
|
65
|
-
// Firestore under the path /messages/:documentId/original
|
66
|
-
|
67
53
|
exports.addMessage = functions.https.onRequest(async (req, res) => {
|
68
|
-
|
69
|
-
// Grab the text parameter.
|
70
54
|
|
71
55
|
const original = req.query.text;
|
72
56
|
|
73
|
-
// Push the new message into Firestore using the Firebase Admin SDK.
|
74
|
-
|
75
57
|
const writeResult = await admin.firestore().collection('messages').add({original: original});
|
76
|
-
|
77
|
-
// Send back a message that we've successfully written the message
|
78
58
|
|
79
59
|
res.json({result: `Message with ID: ${writeResult.id} added.`});
|
80
60
|
|
2
なし
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Cloud Functions(Firebase)への関数デプロイ。エラーで
|
1
|
+
Cloud Functions(Firebase)への関数デプロイ。エラーが解決できません
|
test
CHANGED
File without changes
|
1
なし
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
FirebaseのCloud Functionsに関数をデプロイしたいです。
|
6
|
+
|
7
|
+
ターミナルで「firebase deploy」を行った結果以下のエラーメッセージが出てしましました。
|
6
8
|
|
7
9
|
|
8
10
|
|