I'm working on fixing my project that runs inside of App Engine and uses Big Query for data storage, and every time it reaches line 421 of my main.go (where it runs the insert command into the temporary "buf" table) It gives an obscure error I'll list below. Does anyone have an idea if this is a failure of my formatting of the code? do I just not understand something? I've tried other formats of table ID with the dataset or project IDs, and still fails, so if anyone has any idea what is going on please help explain this to me.
Error message (This repeats with the script as it should, for the record.):
2021-11-12 14:02:03 default[20211112t085603] 2021/11/12 14:02:03 [error] googleapi: Error 404: Table 828663658824:historical.buf is re-created., notFound
And the code snippet of note, the entire git repository is also linked above.
tmpinserter := client.Dataset("historical").Table("buf").Inserter()
var divided [][]*storedROAWithTime
chunk := 950
for i := 0; i < len(in); i += chunk {
end := i + chunk
if end > len(in) {
end = len(in)
}
divided = append(divided, in[i:end])
}
for _, i := range divided {
if len(i) == 0 {
log.Errorln("Divided array had len 0")
break
}
err = tmpinserter.Put(ctx, i)
if err != nil {
ErrorHandler(w, r, 500, "error putting updates", err)
continue
}
}
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |