Closed mukaiyama-t closed 2 years ago
It seems to time out at $bigQueryClient->getServiceAccount();
. local environment can get it with no problem.
As of 6:00 UTC, I could get it on ECS. By the way, the time in the application is 15:00 Japan time.
At about 6:30 UTC, I was unable to retrieve it on ECS. Is it related to the time of day, etc.?
Hi @mukaiyama-t No, the response/timeout shouldn't be related to the time of the day.
Also, since you are able to get results in the local environment, it doesn't seem like a library/API issue.
Everything points to it being an environment issue. Since you're using the config
helpers(likely Laravel) I would invite you to look into cases when the helper doesn't return valid values.
You could even log the values where you are initialising the keyFile
to confirm if that's the case or not.
Hi. I have just resolved the issue and would like to report it. The IP address of bigquery.googleapis.com changes every time I access it. It seems that it was batting against the route table set up in ECS and was causing a timeout.
I have resolved the issue and will close it. Thank you very much.
Hello. I am using google/cloud-bigquery: v1.23.7. I often get a timeout when executing a query and no results are returned, and I can't figure out why.
The query itself is not heavy, but is as follows.
The error is as follows.
The contents are displayed as "UNAUTHENTICATED" and "CREDENTIALS_MISSING". Strangely enough, sometimes the results are returned. Also, I have never had a timeout error with similar connection information in my local environment.
The environment where the timeout occurs is using Fargate on Amazon ECS. We are wondering if that may have something to do with it as well.
The constructor of BigQueryClient.php specifies the following. We believe that the content is correct because sometimes the results are returned.
We have investigated here. It seems that there is a timeout at the
$fn(Psr7\Utils::modifyRequest($request, $modify), $options);
point in vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.phpPlease let me know if you can think of any possible causes. Best regards.