fix(Google BigQuery Node): Better error messages, transform timestamps (#9255)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
@@ -249,10 +249,16 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
|
||||
returnData.push(...executionErrorData);
|
||||
continue;
|
||||
}
|
||||
if ((error.message as string).includes('location')) {
|
||||
if ((error.message as string).includes('location') || error.httpCode === '404') {
|
||||
error.description =
|
||||
"Are you sure your table is in that region? You can specify the region using the 'Location' parameter from options.";
|
||||
}
|
||||
|
||||
if (error.httpCode === '403' && error.message.includes('Drive')) {
|
||||
error.description =
|
||||
'If your table(s) pull from a document in Google Drive, make sure that document is shared with your user';
|
||||
}
|
||||
|
||||
throw new NodeOperationError(this.getNode(), error as Error, {
|
||||
itemIndex: i,
|
||||
description: error.description,
|
||||
|
||||
@@ -7,7 +7,7 @@ export const versionDescription: INodeTypeDescription = {
|
||||
name: 'googleBigQuery',
|
||||
icon: 'file:googleBigQuery.svg',
|
||||
group: ['input'],
|
||||
version: 2,
|
||||
version: [2, 2.1],
|
||||
subtitle: '={{$parameter["operation"]}}',
|
||||
description: 'Consume Google BigQuery API',
|
||||
defaults: {
|
||||
|
||||
Reference in New Issue
Block a user