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

400 Bad Request when passing in an array value. #19

Open
i3149 opened this issue Aug 11, 2023 · 0 comments
Open

400 Bad Request when passing in an array value. #19

i3149 opened this issue Aug 11, 2023 · 0 comments

Comments

@i3149
Copy link

i3149 commented Aug 11, 2023

Describe the bug
I'm trying to use this endpoint: https://developer.cisco.com/meraki/api-v1/get-organization-appliance-vpn-statuses/

The docs show I can pass an array of network ids in to limit the data returned. When I try this, I get the following error:

{{"errors":["'networkIds' must be an array"]}}

To Reproduce

		networks := []string{"N_12345678"}
		resp, r, err := apiClient.StatusesApi.GetOrganizationApplianceVpnStatuses(context.Background(), org.ID).NetworkIds(networks).Execute()
		if err != nil {
			log.Infof("Error when calling `StatusesApi.GetOrganizationApplianceVpnStatuses``: %v\n", err)
			log.Infof("Full HTTP response: %v\n", r)
		}
		log.Infof("Response from `StatusesApi.GetOrganizationApplianceVpnStatuses`: %v\n", resp)

The above code for me always errors out. Removing the network parameter works well.

Expected behavior
I would expect a valid http request and filtered results returned.

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

No branches or pull requests

1 participant