I’m trying to take photo after attaching camera at Electron 3g module, and upload the photo to firebase storage.
By writing json file, I tried to upload it using ‘webhook create’ order, but following error had occurred.
“Error Webhook creation failed: url must use a valid protocol and not reference private hostnames”
This is the following Json code (https://github.com/rickkas7/firebase_tutorial is been referred.)
{
"event": "uploadPicture",
"url": "gs://firebase-testUpload.appspot.com/pict.json",
"requestType": "POST",
"query": {
"auth":"-"
},
"json": {
"BUFFER": "{{BUFFER}}"
},
"mydevices": true,
"noDefaults": true
}
This is the Json code operate properly which sending GPS coordinate and the time.
{
"event": "testGPS",
"url": "https://fir-testUpload.firebaseio.com/TEST0001/GPS.json",
"requestType": "POST",
"query": {
"auth":"-"
},
"json": {
"LAT": "{{LAT}}",
"LNG": "{{LNG}}",
"TS": "{{PARTICLE_PUBLISHED_AT}}"
},
"mydevices": true,
"noDefaults": true
}
If what I’m thinking now is correct, it seems like the part of the url which starts with ‘gs’ is the one with the problem.
Is there any solution for this?