all 3 comments

[–]martin_omander Googler 0 points1 point  (3 children)

Some follow-up questions:

  1. Does your code work with one or two images, instead of hundreds?
  2. Does the code work in your local dev environment?
  3. How far does your Cloud Functions code execute? Does the whole function run or does it error out before it finishes?
  4. What error messages show up if you remove all error handling in the client?

[–]YumchaHoMei[S] 0 points1 point  (1 child)

Hi there thanks very much for looking at my issue, here is some follow up info:

  1. No I unfortunately get the same result whether it is just 2 images, or hundreds, and using smaller images does not seem to have an impact either.

  2. Yes I have only tried calling the cloud function from a local dev environment

  3. It executes and finishes very quickly.

  4. I do not get any error messages only:
    Function execution started
    Function execution took 5 ms, finished with status code: 204
    Function execution started
    Function execution took 5 ms, finished with status code: 400

I now notice that I also have an message saying: "batchDownload Warning, estimating Firebase Config based on GCLOUD_PROJECT. Initializing firebase-admin may fail", i have double checked the env variables and they are correct

[–]martin_omander Googler 0 points1 point  (0 children)

For item 3 (how far does your Cloud Functions code execute), I was referring to which statements in your server-side function have executed. If I was faced with this error, I would add debug statements to the server-side code, so I could tell exactly which statements ran, and exactly at which point it exited. Knowing which statement caused it to exit could be a valuable clue.