boto3 1.44.0 breaking changes: the new retry default, tested
Updated November 29, 2026
On this page
What changed in boto3 1.44.0?
The default retry behavior changed, and that's the only change most code will feel. Your calls work the same way when AWS answers. When AWS fails, boto3 now gives up sooner and waits less between tries. Per the boto3 retry announcement (discussion #4789), an explicit retry mode or max attempts in your config still wins for that setting.
The boto3 changelog lists the change as one line after 13 api-change entries: "The standard retry mode is now the default." Here's what's behind it, from the announcement's before-and-after table:
| Setting | Before 1.44.0 | 1.44.0 and later |
|---|---|---|
| Default retry mode | legacy | standard |
| Max attempts (most services) | 5 | 3 |
| Max attempts (DynamoDB) | 10 | 4 |
| Max attempts (DynamoDB Streams) | 5 | 4 |
| Base delay, transient errors | 1,000 ms (50 ms for DynamoDB) | 50 ms (25 ms for DynamoDB) |
| Base delay, throttling errors | 1,000 ms (50 ms for DynamoDB) | 1,000 ms |
| Retry quota | None | 500 tokens; 14 per transient retry, 5 per throttling retry |
| HTTP 429 with an unmodeled error code | Not retried in standard mode | Retried as throttling |
x-amz-retry-after header | Ignored | Honored, up to 5 seconds past the computed delay |
AWS_NEW_RETRIES_2026 | Opt-in flag (1.43.3 and later) | Removed and ignored |
Two smaller changes shipped in the same release, per the changelog: bearer token authorization now refuses a plain http:// endpoint (covered below), and login credential refresh requests go to the region recorded in the cached login token. Python 3.10 stays the floor; both 1.43.127 and 1.44.0 declare requires_python >=3.10 on PyPI.
How many times does boto3 retry now, in a real run?
Three attempts for most services and four for DynamoDB, and the waits drop from seconds to fractions of one. I pointed an STS and a DynamoDB client at a local server that answers every request with the same error and counted the requests it received. This is the script, run on November 29, 2026 with Python 3.12.15 and fake keys:
import sys, time, threading
from http.server import BaseHTTPRequestHandler as B
from http.server import HTTPServer
import boto3, botocore
status, service = int(sys.argv[1]), sys.argv[2]
hits = []
class Fail(B):
def do_POST(self):
hits.append(time.time())
n = int(self.headers["Content-Length"])
self.rfile.read(n)
self.send_response(status)
self.send_header("Content-Length", "0")
self.end_headers()
def log_message(self, *args):
pass
srv = HTTPServer(("127.0.0.1", 0), Fail)
threading.Thread(target=srv.serve_forever,
daemon=True).start()
client = boto3.client(
service,
endpoint_url=f"http://127.0.0.1:{srv.server_port}",
region_name="us-east-1",
)
call = {"sts": "get_caller_identity",
"dynamodb": "list_tables"}[service]
start = time.time()
try:
getattr(client, call)()
except Exception as e:
err = type(e).__name__
print(f"{botocore.__version__} {service} "
f"{status}: {len(hits)} attempts, "
f"{time.time() - start:.1f}s, {err}")Run as python count.py 500 sts and so on, once in a venv with boto3 and botocore 1.43.127 and once with 1.44.0, it printed:
1.43.127 sts 500: 5 attempts, 4.6s, ClientError
1.43.127 dynamodb 500: 10 attempts, 25.7s, ClientError
1.43.127 sts 429: 1 attempts, 0.0s, ResponseParserError
1.43.127 dynamodb 429: 10 attempts, 25.6s, ClientError
1.44.0 sts 500: 3 attempts, 0.2s, ClientError
1.44.0 dynamodb 500: 4 attempts, 0.2s, ClientError
1.44.0 sts 429: 1 attempts, 0.0s, ResponseParserError
1.44.0 dynamodb 429: 4 attempts, 3.6s, ClientErrorThree things stand out. A DynamoDB call against a failing endpoint used to take about 25 seconds to give up; on 1.44.0 it took a fifth of a second. The 429 case on DynamoDB still waits a few seconds, because throttling keeps its 1 second base delay. And an STS 429 with an empty body raised ResponseParserError after one attempt in both versions: STS answers in XML, botocore couldn't parse the empty error body, and it raised instead of retrying. A real 429 from STS carries an error code; my fake one didn't. Your times will differ from mine, since every delay is randomized (jitter), but the attempt counts won't.
Will the new retry default break my code?
It won't break code that compiles or imports, but it can surface errors your code never saw before. Under legacy mode, a short blip of 500s was often absorbed by five tries spread over several seconds. Under standard mode, the same blip can exhaust three tries in a fraction of a second and reach your code as an exception. You're most likely to notice it if:
- You call DynamoDB in a tight loop and counted on 10 attempts to ride out throttling or a hot partition.
- You batch-process jobs and treat any exception as a failed job, with no retry of your own on top.
- You set
AWS_NEW_RETRIES_2026=falseto stay on the old behavior. The announcement says 1.44.0 ignores the variable, so that no longer works. - Your tests mock AWS with a server that fails a fixed number of times, then succeeds. A mock that fails four times passed on legacy mode and now fails.
- You run many workers against a struggling service. The retry quota now stops retries when failures are widespread, so errors come back faster instead of piling up retry traffic.
If you already set mode: standard yourself, you get the new backoff timing and quota costs, and DynamoDB goes from 3 to 4 attempts, per the announcement. The previous standard-mode timing can't be restored.
How do I upgrade to boto3 1.44.0 safely?
Upgrade boto3 and botocore together, then decide on purpose which retry settings you want. This is the order I'd do it in:
- Upgrade both packages:
pip install "boto3>=1.44.0". boto3 1.44.0 requiresbotocore>=1.44.0,<1.45.0on PyPI, so pip moves botocore with it. Check withpip show botocore. - Search for the old flag:
git grep -n AWS_NEW_RETRIES_2026. Delete it from code, Dockerfiles, CI and task definitions; it does nothing now. - Find where you already pin retries:
git grep -n -e retry_mode -e max_attempts, plusAWS_RETRY_MODEandAWS_MAX_ATTEMPTSin your environment. Those keep their values. - List the clients where failing fast hurts more than waiting: DynamoDB writers, batch jobs, anything without its own retry. Give those an explicit total_max_attempts (shown below).
- Run your tests, especially any that mock AWS failures. A mock that fails more than twice before succeeding now raises.
- Watch error rates for a day after the deploy. More surfaced ClientError exceptions with the same AWS error codes means the retry count, not a new bug.
Pin the version you tested in your lockfile, so a fresh install doesn't move you before you're ready. The guide to checking dependencies before you upgrade covers that step for any package.
How do I get the old boto3 retry behavior back?
Set the retry mode to legacy. Any one of these does it, per the boto3 Retries guide:
- The environment variable
AWS_RETRY_MODE=legacy(every client in the process). - A line
retry_mode = legacyunder your profile in~/.aws/config. - In code, per client:
Config(retries={"mode": "legacy"}).
Run on 1.44.0, the first and second ways put the attempt counts back where they were:
$ AWS_RETRY_MODE=legacy python count.py 500 sts
1.44.0 sts 500: 5 attempts, 5.5s, ClientError
$ AWS_RETRY_MODE=legacy python count.py 500 dynamodb
1.44.0 dynamodb 500: 10 attempts, 25.6s, ClientError
$ cat awsconfig
[default]
retry_mode = legacy
$ AWS_CONFIG_FILE=$PWD/awsconfig \
python count.py 500 sts
1.44.0 sts 500: 5 attempts, 11.0s, ClientErrorAnd a client can report which mode it resolved, which is a quick check that your setting reached it:
import boto3
from botocore.config import Config
legacy = Config(retries={"mode": "legacy"})
s3 = boto3.client("s3", config=legacy,
region_name="us-east-1")
print(s3.meta.config.retries)
more = Config(retries={"mode": "standard",
"max_attempts": 5})
ddb = boto3.client("dynamodb", config=more,
region_name="us-east-1")
print(ddb.meta.config.retries)
plain = boto3.client("sqs", region_name="us-east-1")
print(plain.meta.config.retries)== 1.43.127
{'mode': 'legacy'}
{'mode': 'standard', 'total_max_attempts': 6}
{'mode': 'legacy'}
== 1.44.0
{'mode': 'legacy'}
{'mode': 'standard', 'total_max_attempts': 6}
{'mode': 'standard'}I wouldn't go back to legacy everywhere. The shorter backoff is better for most request paths, and the quota protects a service that's already failing. I'd keep standard mode and raise the attempt count only on the clients that need it.
Why does max_attempts give one more attempt than I set?
Because max_attempts means two different things depending on where you set it. In ~/.aws/config or AWS_MAX_ATTEMPTS it counts every request, including the first. In a Config object it counts retries only, so max_attempts: 5 means six requests. The boto3 Retries guide documents both. That's the 6 in the output above, and the run agrees:
$ AWS_MAX_ATTEMPTS=5 python count.py 500 sts
1.44.0 sts 500: 5 attempts, 0.2s, ClientError
# same script, with
# config=Config(retries={"max_attempts": 5})
1.44.0 sts 500: 6 attempts, 1.2s, ClientErrorIn code, use total_max_attempts instead. It counts the first request, so it matches the environment variable and the config file. To get the old 10 attempts back for DynamoDB only, with the new backoff:
config = Config(retries={
"mode": "standard",
"total_max_attempts": 10,
})
ddb = boto3.client("dynamodb", config=config)The environment variable and the config file apply one value to every client in the process, so use them only if every service should get the same count.
Why does boto3 say "Bearer authorization requires an HTTPS endpoint"?
Because botocore 1.44.0 refuses to send a bearer token over plain HTTP. The changelog entry reads "Require HTTPS when using bearer token authorization". You'll see it with Amazon Bedrock API keys (AWS_BEARER_TOKEN_BEDROCK) or any other bearer-token service when endpoint_url starts with http://, which usually means a local proxy, a mock or a test server.
I ran a Bedrock list_foundation_models call with a fake token against a local http:// server on both versions:
$ export AWS_BEARER_TOKEN_BEDROCK=test-token
$ python bearer.py # botocore 1.43.127
1.43.127 sent: ['Bearer test-token']
$ python bearer.py # botocore 1.44.0
1.44.0 InvalidEndpointConfigurationError
Invalid endpoint configuration: Bearer
authorization requires an HTTPS endpoint.(The last line is wrapped; it prints as one line.) On 1.43.127 the token went out in the clear. On 1.44.0 the call stops before any request is sent, so the local server saw nothing. The fix is to put TLS in front of the endpoint, even a self-signed certificate for a local proxy, or to use SigV4 credentials instead of the bearer token for that client. There's no setting to allow plain HTTP again, and I wouldn't want one: anyone on the path could read the token.
What changed in boto3 1.44.1 to 1.44.13?
Nothing else that changes behavior for most code. From the changelog for 1.44.1 to 1.44.13 (the latest on November 29, 2026), these are the entries besides api-change:
- 1.44.1 restores the
NEW_RETRIES_ENABLEDconstant inbotocore.configproviderandbotocore.retries.standard, so code that imported it imports again. 1.44.0 had removed it, which raised ImportError. It's always True now and will be removed later. - 1.44.3 fixes the Content-Type of Smithy RPC v2 CBOR requests whose response is an event stream.
- 1.44.5 adds two Kinesis receive operations to the long-polling list, which back off when the retry quota runs out.
- 1.44.6 caches the static parts of the User-Agent header to cut per-request CPU.
If you're upgrading from 1.43.x, go straight to the newest 1.44 release rather than stopping at 1.44.0, so you skip the missing constant. The same method works for any package's release range: see how to find breaking changes between two versions.
Where Since.dev fits
Since.dev keeps a boto3 breaking changes page and a botocore breaking changes page that list the releases that changed behavior, each with its source, so you don't have to read through daily api-change entries to find a line like the 1.44.0 retry default. For another Python upgrade written up the same way, see python-multipart 0.0.20 to 0.0.34.
To see what a public repository is exposed to, run a free scan, or give your coding agent the same answers through the docs. When a change like this reaches a repository you connect, Since.dev reports where your code is affected and can open a pull request with the fix for you to review. It doesn't open routine version bumps. Nothing merges or deploys on its own.
Questions
Is boto3 1.44.0 a breaking change?
Not for your code's API: no method or argument was removed. It changes runtime behavior: the default retry mode moves from legacy to standard, so failed calls give up after 3 attempts instead of 5 (4 instead of 10 for DynamoDB). It also refuses bearer tokens over plain HTTP.
What is the default retry mode in boto3?
Standard, since boto3 and botocore 1.44.0, released November 10, 2026. Before that the default was legacy. You can still choose legacy, standard or adaptive with AWS_RETRY_MODE, retry_mode in ~/.aws/config, or Config(retries={'mode': ...}) on a client.
How many times does boto3 retry by default?
In 1.44.0 and later, 3 total attempts for most services, which is the first request and 2 retries. DynamoDB and DynamoDB Streams get 4. Before 1.44.0, legacy mode allowed 5 attempts, and 10 for DynamoDB.
Does AWS_NEW_RETRIES_2026 still do anything?
No. It was the opt-in flag for versions 1.43.3 up to, but not including, 1.44.0. From 1.44.0 the new behavior is the default and botocore ignores the variable, so setting it to false no longer keeps the old behavior. Set AWS_RETRY_MODE=legacy instead.
Does the AWS CLI use the new retry default too?
Yes, from AWS CLI 2.40.0, per the AWS blog post of November 10, 2026. Most other AWS SDKs changed on the same date, each at its own version, and the post lists them. The same retry_mode and max_attempts settings in ~/.aws/config apply to the CLI.
Why do my DynamoDB calls fail faster after upgrading boto3?
Because DynamoDB went from 10 attempts to 4 and its transient base delay from 50 ms to 25 ms. In a test against a server that always failed, boto3 1.43.127 gave up after about 25 seconds and 1.44.0 after a fifth of a second. Set total_max_attempts on the DynamoDB client if you need more tries.
Related guides
How-to
- google-auth 2.56.2 breaking change: the service account email check, testedgoogle-auth 2.56.2 only runs the Regional Access Boundary lookup for .gserviceaccount.com emails, and 2.63.0 turns it off by default. Tested on three versions.
- python-multipart 0.0.20 to 0.0.34: what breaks when you upgradeUpgrading python-multipart from 0.0.20 to 0.0.34? Semicolons stop splitting form fields, Python 3.11 is the floor, and two APIs are gone. Tested side by side.
- How to find the breaking changes between two versions of a packageHow to find breaking changes between two versions of a package: list the releases in between, read each changelog, diff the code. Commands for npm, PyPI, Go.
- How to check your dependencies for breaking changes before you upgradeHow to check dependencies for breaking changes before upgrading: the commands, a real failing upgrade, CI that fails on deprecations, and where notices appear.
Explainers
- Caret vs tilde in package.json: what ^ and ~ let inCaret (^) allows minor and patch updates, tilde (~) only patches. The 0.x exception, what your lockfile does, and how ^ and ~ differ in Cargo and Composer.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.