Bug Summary
When the rate limiter is triggered (more than 5 requests per second), a TypeError is raised in limiter.py.
Steps to Reproduce
- Make multiple API calls in quick succession (>5 requests/second)
- The rate limiter triggers and attempts to calculate wait time
- TypeError is raised
Expected Behavior
The rate limiter should calculate the wait time correctly and pause execution until the next request is allowed, without raising any exception.
Actual Behavior
When making multiple API calls in quick succession, the SDK crashes with the following error:
TypeError: unsupported operand type(s) for -: 'int' and 'datetime.timedelta'
Project Version
0.38.1
Environment Info
Python version: 3.14
Bug Summary
When the rate limiter is triggered (more than 5 requests per second), a
TypeErroris raised inlimiter.py.Steps to Reproduce
Expected Behavior
The rate limiter should calculate the wait time correctly and pause execution until the next request is allowed, without raising any exception.
Actual Behavior
When making multiple API calls in quick succession, the SDK crashes with the following error:
Project Version
0.38.1
Environment Info
Python version:
3.14