Closed jeroen-corsius-choreograph closed 1 week ago
I am not very familiar with BigQuery, but while debugging the issue, I noticed that the client initiates the resumable upload session and returns the following URI (for the session URI or upload URI UploadUri
property):
http://0.0.0.0:9050/upload/bigquery/v2/projects/some_project/jobs?uploadType=resumable&upload_id=job_b5c859ce_3301_4d2c_aa91_f81c43a355b8
Which I believe is incorrect. I assume the IP should be the Docker host (127.0.0.1), and the port should be the randomly assigned host port. I expect the same problem when running the container from the CLI (without Testcontainers). Although, I am unsure if configurations are missing (or if there are any configurations available at all) or if your workaround is the correct approach and should be documented.
Perhaps the best is to create an upstream issue (probably the initial issue https://github.com/goccy/bigquery-emulator/issues/311 was right) and get more details about how the URI gets created and whether any configurations are available or necessary. I have not looked at the documentation yet, so that is probably something we should do too.
As mentioned in my previous comment, I do not think this is an issue with Testcontainers. If you have any further information about the issue, specifically regarding Testcontainers, please do not hesitate to reopen the issue. In the meantime, I will close it.
Testcontainers version
3.8.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
x64
.NET version
8.0.100
Docker version
Docker info
What happened?
Trying to upload a CSV file fails. Example code:
Relevant log output
Additional information
Workaround If I replace the "Create client" part of the provided example with the code below, I'm able to upload CSV files: