-
Notifications
You must be signed in to change notification settings - Fork 736
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
[BUG]: github_ip_ranges unable to parse meta endpoint. #2357
Comments
Seems like it works when downgrading the provider to 6.2.2. It only fails with 6.2.3. |
🫡 Same error here, gonna use: provider "github" {
version = "6.2.2"
} for now (using Terraform v1.9.4 with it) |
A little investigations: The resource
The error described above, "cannot unmarshal object into Go struct field APIMeta.domains of type []string with data.github_ip_ranges.default", says that field However, observing the actual response from api.github.com/meta, there are Note that the API document of GitHub about this endpoint does not mention about the Personally, I feel this is most likely an upstream google/go-github issue. On the other hand, this is likely to involve incompatible changes to the API, which seems like a difficult problem. |
I found that the As far as I can see, google/go-github's version is upgraded in #2304, which included in v6.2.3 release of terraform-provider-github. However, if this is happening with an older version, as is also the case at #2357 (comment) then I don't know what could be causing this. |
Now that the upstream issue has been resolved in google/go-github#3249 (cc google/go-github#3248), all we have to do is wait for the next release 👀 |
Got the same issue, on a mac.
Going back to 6.2.2 did the trick. EDIT Updated terraform to the latest and it still fail with |
still fails with 6.3.0 |
Same for me |
The upstream problem is resolved and released in google/go-github#3266 as go-github v65.0.0, so #2359 should fix this issue |
Expected Behavior
The following will provide a list of IP addresses:
Actual Behavior
It fails with the following:
Terraform Version
Terraform v1.9.4 + github provider 6.2.3
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: