Skip to content

Docs, Tests, Bug fixes

Latest
Compare
Choose a tag to compare
@Joezanini Joezanini released this 15 Aug 21:23
904f90d

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