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

Error cannot unmarshal number into Go struct field when attempting to use data "meraki_networks_wireless_ssids_traffic_shaping_rules" #146

Open
tienphan181 opened this issue Aug 23, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@tienphan181
Copy link

tienphan181 commented Aug 23, 2024

Describe the bug
When I use data "meraki_networks_wireless_ssids_traffic_shaping_rules" I get the following error:
Error: Failure when executing GetNetworkWirelessSSIDTrafficShapingRules

│ with data.meraki_networks_wireless_ssids_traffic_shaping_rules.example,
│ on firewall-rules.tf line 67, in data "meraki_networks_wireless_ssids_traffic_shaping_rules" "example":
│ 67: data "meraki_networks_wireless_ssids_traffic_shaping_rules" "example" {

│ json: cannot unmarshal object into Go struct field
│ ResponseWirelessGetNetworkWirelessSSIDTrafficShapingRulesRulesDefinitions.rules.definitions.value
│ of type string

Same error when I try to create a resource "meraki_networks_wireless_ssids_traffic_shaping_rules".

Expected behavior
I would expect it to show the data with no errors.

Environment (please complete the following information):
Terraform version: OpenTofu v1.7.2
Meraki provider version: 0.2.10-alpha
OS Version: macOS 13.6.7

Additional context

data "meraki_networks_wireless_ssids_traffic_shaping_rules" "example" {

  network_id = meraki_networks.test-Terraform.id
  number     = 1
}

output "meraki_networks_wireless_ssids_traffic_shaping_rules_example" {
  value = data.meraki_networks_wireless_ssids_traffic_shaping_rules.example.item.rules
}
@fmunozmiranda fmunozmiranda added the documentation Improvements or additions to documentation label Sep 27, 2024
@fmunozmiranda
Copy link
Collaborator

Hi @tienphan181 could you please pass me debug of provider please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants