Skip to content
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_apigee_envgroup_attachment creation returns error with HTTP 404 #9044

Closed
jaredkosanovic opened this issue Apr 30, 2021 · 3 comments
Closed
Assignees
Labels

Comments

@jaredkosanovic
Copy link

jaredkosanovic commented Apr 30, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the 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 to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v0.15.1
on darwin_amd64
+ provider registry.terraform.io/hashicorp/google v3.66.1
+ provider registry.terraform.io/hashicorp/google-beta v3.66.1

Affected Resource(s)

  • google_apigee_envgroup_attachment

Terraform Configuration Files

https://github.com/jaredkosanovic/apigee-x/blob/5335674dc51b7eb306b97cebf21a29114fee7703/terraform/development/main.tf#L41-L49

Debug Output

https://gist.github.com/jaredkosanovic/3a338477cdca79d071d7f591a3b4848e

Panic Output

Expected Behavior

The Apigee environments should be attached to the environment group.

Actual Behavior

╷
│ Error: Error creating EnvgroupAttachment: googleapi: got HTTP response code 404 with body: <!DOCTYPE html>
│ <html lang=en>
│   <meta charset=utf-8>
│   <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
│   <title>Error 404 (Not Found)!!1</title>
│   <style>
│     *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
│   </style>
│   <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
│   <p><b>404.</b> <ins>That’s an error.</ins>
│   <p>The requested URL <code>/v1/DoIT/attachments?alt=json</code> was not found on this server.  <ins>That’s all we know.</ins>
│ 
│ 
│   with google_apigee_envgroup_attachment.framework,
│   on main.tf line 41, in resource "google_apigee_envgroup_attachment" "framework":
│   41: resource "google_apigee_envgroup_attachment" "framework" {
│ 
╵
╷
│ Error: Error creating EnvgroupAttachment: googleapi: got HTTP response code 404 with body: <!DOCTYPE html>
│ <html lang=en>
│   <meta charset=utf-8>
│   <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
│   <title>Error 404 (Not Found)!!1</title>
│   <style>
│     *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
│   </style>
│   <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
│   <p><b>404.</b> <ins>That’s an error.</ins>
│   <p>The requested URL <code>/v1/DoIT/attachments?alt=json</code> was not found on this server.  <ins>That’s all we know.</ins>
│ 
│ 
│   with google_apigee_envgroup_attachment.ipt,
│   on main.tf line 46, in resource "google_apigee_envgroup_attachment" "ipt":
│   46: resource "google_apigee_envgroup_attachment" "ipt" {
│ 
╵

Steps to Reproduce

  1. git clone git@github.com:jaredkosanovic/apigee-x.git
  2. cd apigee-x
  3. git checkout 5335674dc51b7eb306b97cebf21a29114fee7703
  4. Follow instructions in readme to apply terraform.

Important Factoids

References

  • #0000
@venkykuberan venkykuberan self-assigned this Apr 30, 2021
@venkykuberan
Copy link
Contributor

@jaredkosanovic can you please try using id instead of name and see if it works ?

@jaredkosanovic
Copy link
Author

@venkykuberan Thanks for your suggestion. That worked! I would like to offer a couple suggestions to improve the provider:

  • The documentation shows using the name, not the ID, in the example. It would be helpful if the example showed the correct attribute to use.
  • A more detailed error message if using an invalid envgroup_id would be helpful. Right now, it just outputs a generic 404 html page. Perhaps this is an issue with the underlying Apigee X API.

@ghost ghost removed the waiting-response label May 6, 2021
@github-actions
Copy link

github-actions bot commented Jun 6, 2021

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants