Skip to content

Develop v2.2.0#322

Open
fmunozmiranda wants to merge 3 commits intomainfrom
develop
Open

Develop v2.2.0#322
fmunozmiranda wants to merge 3 commits intomainfrom
develop

Conversation

@fmunozmiranda
Copy link
Collaborator

No description provided.

vozhyk- and others added 3 commits February 12, 2026 14:54
The API returns HTML instead of JSON for 404 responses
for nonexistent endpoints
(e.g. `GET "/networks/{networkId}/appliance/firewall/multicastForwarding"`).

`meraki.rest_session.RestSession` raises an `APIError`
with `.status = 404`
and `message` set to the first few bytes of the HTML
and `"please wait a minute if the key or org was just newly created."` appended:
`"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtmplease wait a minute if the key or org was just newly created."`.

`meraki.aio.rest_session.AsyncRestSession`
instead tries to parse the message as JSON
and does not handle the resulting `JSONDecodeError`.
That exception does not include the status code so it's not useful.

Fix the typo in handling JSON decode errors for 4xx responses.
AsyncRestSession: Fix handling JSONDecodeError for 404
- Bump version to 2.2.0 in pyproject.toml and __init__.py.
- Update API documentation for AsyncAppliance and AsyncOrganizations to clarify port settings and add new methods for connecting and disconnecting Cisco Umbrella accounts.
- Adjust maximum lookback periods and pagination limits in various API methods for improved functionality.
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

Successfully merging this pull request may close these issues.

2 participants