googleapis / googleapis/google-cloud-go
bigquery: googleapi: Error 400: The job encountered an internal error during execution and was unable to complete successfully., jobInternalError
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 1.6k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 109
Description
## Client
bigquery
## Environment
```
$ go version
go version go1.24.0 linux/amd64
```
## Code and Dependencies
```go
package example
import (
"context"
"fmt"
"cloud.google.com/go/bigquery"
"google.golang.org/api/iterator"
)
func doQuery(ctx context.Context, bq *bigquery.Client, query string) error {
it, err := bq.Query(query).Read(ctx)
if err != nil {
return nil, err
}
for {
var row map[string]bigquery.Value
err := it.Next(&row)
if err == iterator.Done {
break
}
if err != nil {
return err
}
fmt.Println(row)
}
return nil
}
```
go.mod
```text
module modname
go 1.24.0
require (
cloud.google.com/go/bigquery v1.67.0
google.golang.org/api v0.228.0
)
```
## Expected behavior
Retry the query.
## Actual behavior
Returned error:
```
googleapi: Error 400: The job encountered an internal error during execution and was unable to complete successfully., jobInternalError
```
## Additional context
Intermittently occurring, seemingly b/c of uncaught backend errors.
Quick googling and searching through the issues, the error even seem to occur intermittently in your ci.
If ignored/retried, can't the error be retried automatically in the client?
https://github.com/googleapis/google-cloud-go/issues/5302
https://github.com/googleapis/google-cloud-go/issues/5071
Contributor guide
Assessment
This issue has not been assessed yet.