Sana
Sana

Reputation: 563

Upload data from cloud storage to bigquery

[The issue is resolved, Stackoverflow does not allow to delete the question, the issue was a mistmatch in schema]

I have a piece of code which uploads data from cloud storage into bigquery correctly. I run the code locally and works. Now I moved the code to cloud functions, and it fails, could you help me how I can fix it?

The logs : "Function cannot be initialized. Error: function terminated…"

Upvotes: 0

Views: 61

Answers (1)

Mazlum Tosun
Mazlum Tosun

Reputation: 6572

Check in Cloud Logging to have more info on the error, this link is interesting regarding Cloud Functions troubleshooting :

Function cannot be initialized. Error: function terminated. Recommended action: inspect logs for termination reason. Additional troubleshooting information can be found in Logging.

Upvotes: 1

Related Questions