-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_firestore_document.document: GoogleApi Error 400: Missing routing header #15550
Comments
b/296467504 |
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The basic Field example is also creating its own project and its own database now for test isolation purposes. It might be sufficient to just create a database the same way as for backup schedules; we can evaluate that once the tests have been passing for a while. * The other two Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do. [upstream:003fa68204d7bcff11e5153364e8c6eb950155ed] Signed-off-by: Modular Magician <[email protected]>
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do. [upstream:003fa68204d7bcff11e5153364e8c6eb950155ed] Signed-off-by: Modular Magician <[email protected]>
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do. [upstream:003fa68204d7bcff11e5153364e8c6eb950155ed] Signed-off-by: Modular Magician <[email protected]>
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do. [upstream:003fa68204d7bcff11e5153364e8c6eb950155ed] Signed-off-by: Modular Magician <[email protected]>
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do. [upstream:003fa68204d7bcff11e5153364e8c6eb950155ed] Signed-off-by: Modular Magician <[email protected]>
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do. [upstream:003fa68204d7bcff11e5153364e8c6eb950155ed] Signed-off-by: Modular Magician <[email protected]>
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
please look at this issue Error: Error creating Document: googleapi: Error 400: Missing routing header. Please fill in the request header with format x-goog-request-params:project_id=xxxxxxxx&database_id=firestoredatabase02. Please refer to https://firebase.google.com/docs/firestore/manage-databases#access_a_named_database_with_a_client_library for more details. |
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
hi, will this issue be fixed soon and are there any workaround in the mean time |
This should now be resolved. |
@melinath which provider version has this fix? |
The API no longer requires the routing header, so it should work in all provider versions that support this resource. Definitely let us know if that doesn't seem to be the case! |
There's a whole bunch of different constraints that have to be met for these tests to pass consistently. * Backup schedules need to be run in a project with billing enabled, and the database needs a deletion policy to ensure it is properly swept. * The default-database examples were marked as skip-test. They're valuable as examples but not really as tests - there's nothing Terraform-specific about them worth testing - and the Field tests will fail if default database creation doesn't work in Terraform * The Document tests need to run against the (default) database due to an existing bug (hashicorp/terraform-provider-google#15550). So they will now create their own project and their own (default) database. * The Field examples are following the same pattern as the backup schedule examples. * The Firestore-native index example is using the inband project creation method, because then we can use the (default) database, which means we can use the Document resource (see the above-mentioned bug), which means that we don't need to use a manually-created project (because creating a Document implicitly creates its collection). * The Datastore mode Index example can't take that same approach, because it doesn't seem like the Document resource works on datastore-mode databases. So we will need to use the manually-created FIRESTORE_PROJECT_NAME project for that one, and it will need to have a Datastore mode database manually baked into it. This exercise has identified a fair number of places for improvement to the Firestore Terraform story, but as a stopgap to get the tests passing again, this will have to do.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.5.0 on linux_amd64 Your version of Terraform is out of date! The latest version is 1.5.5. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
google_firestore_document
Terraform Configuration Files
Debug Output
Panic Output
See error below
Expected Behavior
No error
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
Terraform provider:
References
The text was updated successfully, but these errors were encountered: