ECONNRESET error while inserting data in bigquery

I get an ECONNRESET error when I try to insert data (like a stream) into BigQuery using the google-cloud node module.

var writeToBigQuery = function(message,t){ var table = dataset.table(t); var options ={ "ignoreUnknownValues":true} table.insert(message,options,insertHandler); } var insertHandler = function(err, insertErrors, apiResponse) { //api error? if(err){ //notify console.log("fail to write data: "+ JSON.stringify(err)) return; } //insert error? if(insertErrors.length > 0){ //notify console.log("fail to write data: "+ JSON.stringify(insertErrors)) return; } //row saved successfully! } 

I am trying to write a file with some jsons. I know I can use the bigquery task, but I need to change some json values ​​before writing them to bigquery.

Perhaps this is a local connection problem?

+5
source share

Source: https://habr.com/ru/post/1258140/


All Articles