You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
v2.0.5 - Docs, Tests, Bug fixes
What's Fixed
Fixed critical bug where malformed Retry-After headers from Webex API caused application crashes
Applications now handle rate limit responses gracefully, even with unexpected header values
Added comprehensive error handling for malformed API responses
max parameter in the list_messages() function
Contributor docs updated to reflect better local testing instructions
Impact
Eliminates unexpected crashes during rate limit situations
Improves application stability and user experience
Maintains backward compatibility
Always preserve critical parameters: Parameters like max, roomId, parentId, mentionedPeople, before, and beforeMessage are always preserved with their original values
Consistent pagination: Ensures the max parameter maintains consistent page sizes across all pagination requests
Technical Details
Enhanced RateLimitError constructor with robust error handling
Added graceful fallback to 15-second retry intervals for malformed headers
Comprehensive test coverage to prevent future regressions
list_messages(roomId="123", max=10) will consistently return pages of 10 messages
list_rooms(max=5) will consistently return pages of 5 rooms
All other list methods will maintain consistent page sizes