-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigQuery table.import() complains about not having a project ID. #1984
Comments
Can you show the code that reproduces as well? I just tried this and it went through okay: var bigquery = require('@google-cloud/bigquery')({
projectId: 'my-project-id'
})
var dataset = bigquery.dataset('myDataset')
var table = dataset.table('myTable')
table.getMetadata().then(console.log) ( |
Alright, I've been playing around with my code for a bit, and I realize that if I call the code I'm using to send data directly, it seems to work fine, but when calling it the way I do in my application, it doesn't. I'm calling it exactly the same way in both cases, but apparently there's something I'm missing. Either way, it seems like something on my side, since it works in my stripped down tests. Feel free to close this, unless you've got any ideas of things I could be doing that would mess this up. |
Not off hand, but walking step by step through what your code does will likely highlight any oddities. If you're still stumped, share any code to reproduce and I will take a look. |
Alright, I've done some investigating, and found that the error is being thrown here: https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/packages/common/src/util.js#L356-L358 Problem is, it's catching a I'm not entirely sure what I could be doing differently between my application code and my testing code, so I'll see if I can come up with a way that I can give you the problematic code (without making my employer angry). |
Upon further investigation, the same |
Alright, so after even more investigation, the |
This is to stop the for...in loop from looping over properties that aren't actually part of the object, which can lead to the call stack overflowing under certain circumstances.
Despite having specified the project ID when creating the
BigQuery
object, I'm getting this error about there not being one specified when trying to usetable.import()
.Environment details
Steps to reproduce
@google-cloud/bigquery
BigQuery
object specifyingprojectId
in optionsdataset
object fromBigQuery
object, thentable
object fromdataset
table.import(jsonFile).then(...);
Error
The text was updated successfully, but these errors were encountered: