René's URL Explorer Experiment


Title: fix(http): defensively handle missing optional fields and snake_case keys in HttpRetryOptions.from_json by hardikkaurani · Pull Request #353 · microsoft/durabletask-python · GitHub

Open Graph Title: fix(http): defensively handle missing optional fields and snake_case keys in HttpRetryOptions.from_json by hardikkaurani · Pull Request #353 · microsoft/durabletask-python

X Title: fix(http): defensively handle missing optional fields and snake_case keys in HttpRetryOptions.from_json by hardikkaurani · Pull Request #353 · microsoft/durabletask-python

Description: Summary of Changes Closes #351 In azure.durable_functions.http.models.HttpRetryOptions.from_json(), deserialization previously accessed optional retry fields (maxRetryIntervalInMilliseconds, retryTimeoutInMilliseconds, and backoffCoefficient) using direct dictionary subscripting value["..."]. When a wire payload omits these optional fields (for example, when serialized with default options or across language SDK boundaries), from_json() raised KeyError (e.g. KeyError: 'maxRetryIntervalInMilliseconds'), causing the built-in HTTP orchestrator polling loop (builtin_http_poll_orchestrator) to fail during replay. Furthermore, unlike DurableHttpResponse.from_json() which defensively handles both status_code and statusCode, HttpRetryOptions.from_json() only recognized camelCase keys, rejecting snake_case dictionaries. This change: Defensively extracts fields with .get(), defaulting backoff_coefficient to 1.0, max_retry_interval to timedelta(days=6) (matching the HttpRetryOptions constructor default when omitted), and preserving explicit None for unbounded intervals. Supports both camelCase and snake_case key naming (first_retry_interval_in_milliseconds, max_number_of_attempts, backoff_coefficient, max_retry_interval_in_milliseconds, retry_timeout_in_milliseconds, and status_codes_to_retry). Adds unit and orchestrator execution tests covering partial wire payloads, explicit None max intervals, and snake_case configurations. Changes Across Commits Commit 1: fix(http): handle missing optional fields in HttpRetryOptions.from_json Safely extract maxRetryIntervalInMilliseconds, retryTimeoutInMilliseconds, and backoffCoefficient in HttpRetryOptions.from_json(). Commit 2: fix(http): support snake_case keys in HttpRetryOptions.from_json Add defensive fallback lookup for snake_case dictionary keys across all policy properties. Commit 3: test(http): verify HttpRetryOptions.from_json with missing optional fields Add unit test verifying that minimal payloads and payloads with explicit None max intervals reconstruct correctly. Commit 4: test(http): verify HttpRetryOptions.from_json with snake_case keys Add unit test verifying reconstruction from snake_case wire payloads. Commit 5: docs(http): document defensive payload parsing in HttpRetryOptions.from_json Update docstring in models.py and document the fix in azure-functions-durable/CHANGELOG.md. Commit 6: test(http): verify orchestrator execution with partial retry options payload Add an execution test verifying that builtin_http_poll_orchestrator successfully runs when provided with a partial retryOptions dictionary. Verification pytest tests/azure-functions-durable/test_http_retry.py (81/81 passed) ruff check . (All checks passed)

Open Graph Description: Summary of Changes Closes #351 In azure.durable_functions.http.models.HttpRetryOptions.from_json(), deserialization previously accessed optional retry fields (maxRetryIntervalInMilliseconds, retryT...

X Description: Summary of Changes Closes #351 In azure.durable_functions.http.models.HttpRetryOptions.from_json(), deserialization previously accessed optional retry fields (maxRetryIntervalInMilliseconds, retryT...

Opengraph URL: https://github.com/microsoft/durabletask-python/pull/353

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4074c2aa-cb04-ca3f-16c2-2dc46abba304
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB52E:3A7773:3430B3:4817E8:6AFE2E54
html-safe-nonce217dc786a6f92b87e5c1bd59ee61d4ea1c5089d8f9acf8c85a4a94df76662320
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTJFOjNBNzc3MzozNDMwQjM6NDgxN0U4OjZBRkUyRTU0IiwidmlzaXRvcl9pZCI6IjgzNDIyMjc1NjgwNjQwNTcxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6c300cb074de538fccb25edde1a3b8254043c6222656e42e3d3627e06faee4b6
hovercard-subject-tagpull_request:5250335154
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/durabletask-python/pull/353/files
twitter:imagehttps://avatars.githubusercontent.com/u/224249943?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224249943?s=400&v=4
og:image:altSummary of Changes Closes #351 In azure.durable_functions.http.models.HttpRetryOptions.from_json(), deserialization previously accessed optional retry fields (maxRetryIntervalInMilliseconds, retryT...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/microsoft/durabletask-python git https://github.com/microsoft/durabletask-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id627664515
octolytics-dimension-repository_nwomicrosoft/durabletask-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627664515
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1f92c367595b9190e0be293896078033886b1913
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/durabletask-python/pull/353/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F353%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F353%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2Fdurabletask-python
Reloadhttps://github.com/microsoft/durabletask-python/pull/353/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/353/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/353/files
microsofthttps://github.com/microsoft
durabletask-pythonhttps://github.com/microsoft/durabletask-python
Codehttps://github.com/microsoft/durabletask-python
Issues15 (15)https://github.com/microsoft/durabletask-python/issues
Pull requests12 (12)https://github.com/microsoft/durabletask-python/pulls
Actionshttps://github.com/microsoft/durabletask-python/actions
Projectshttps://github.com/microsoft/durabletask-python/projects
Security and qualityhttps://github.com/microsoft/durabletask-python/security
Insightshttps://github.com/microsoft/durabletask-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fdurabletask-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fdurabletask-python%2Fissues%2Fnew%2Fchoose
Hardik K (hardikkaurani)https://github.com/hardikkaurani
microsoft:mainhttps://github.com/microsoft/durabletask-python/tree/main
hardikkaurani:fix/http-retry-options-defensive-parsinghttps://github.com/hardikkaurani/durabletask-python/tree/fix/http-retry-options-defensive-parsing
Conversation 5 https://github.com/microsoft/durabletask-python/pull/353
Commits 6 https://github.com/microsoft/durabletask-python/pull/353/commits
Checks 1 https://github.com/microsoft/durabletask-python/pull/353/checks
Files changed https://github.com/microsoft/durabletask-python/pull/353/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/353/files
fix(http): defensively handle missing optional fields and snake_case keys in HttpRetryOptions.from_json https://github.com/microsoft/durabletask-python/pull/353/files#top
Show all changes 6 commits https://github.com/microsoft/durabletask-python/pull/353/files
8c17aee fix(http): handle missing optional fields in HttpRetryOptions.from_json hardikkaurani Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/353/commits/8c17aee4cc82dcee05e8efa06469ff0f130ac565
e48d4ba fix(http): support snake_case keys in HttpRetryOptions.from_json hardikkaurani Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/353/commits/e48d4bac85e9a34abb8658f659613451b4baeafa
f3deca3 test(http): verify HttpRetryOptions.from_json with missing optional f… hardikkaurani Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/353/commits/f3deca3a3b029bbbac07eaf18b0cc6527429e31d
6cd57bc test(http): verify HttpRetryOptions.from_json with snake_case keys hardikkaurani Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/353/commits/6cd57bc58aee45cb909a0dab56a5b755b507411e
0f05609 docs(http): document defensive payload parsing in HttpRetryOptions.fr… hardikkaurani Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/353/commits/0f056092345dfdf5ddf19bb72a5bd36795ded258
2fe1597 test(http): verify orchestrator execution with partial retry options … hardikkaurani Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/353/commits/2fe159724a624a909d493d5e98fba5040ca46ca9
Clear filters https://github.com/microsoft/durabletask-python/pull/353/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/353/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/353/files
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/353/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
models.py https://github.com/microsoft/durabletask-python/pull/353/files#diff-1480cb8886842a13e2ad7f2f7685f4b17d28d89c71ef7c74293f36817ae0c1d1
test_http_retry.py https://github.com/microsoft/durabletask-python/pull/353/files#diff-92099d197a1dbe8f65c36d18cef22e612dc96f6b7136ae2f91f3b4b53f535deb
azure-functions-durable/CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/353/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
View file https://github.com/hardikkaurani/durabletask-python/blob/2fe159724a624a909d493d5e98fba5040ca46ca9/azure-functions-durable/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/353/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/353/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
https://github.com/microsoft/durabletask-python/pull/353/files#diff-5238e244f2c6b5bd4ede65c19a2cd928c40ff1a5c28bf1979651e8fe1db1a6d2
azure-functions-durable/azure/durable_functions/http/models.pyhttps://github.com/microsoft/durabletask-python/pull/353/files#diff-1480cb8886842a13e2ad7f2f7685f4b17d28d89c71ef7c74293f36817ae0c1d1
View file https://github.com/hardikkaurani/durabletask-python/blob/2fe159724a624a909d493d5e98fba5040ca46ca9/azure-functions-durable/azure/durable_functions/http/models.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/353/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/353/files#diff-1480cb8886842a13e2ad7f2f7685f4b17d28d89c71ef7c74293f36817ae0c1d1
https://github.com/microsoft/durabletask-python/pull/353/files#diff-1480cb8886842a13e2ad7f2f7685f4b17d28d89c71ef7c74293f36817ae0c1d1
tests/azure-functions-durable/test_http_retry.pyhttps://github.com/microsoft/durabletask-python/pull/353/files#diff-92099d197a1dbe8f65c36d18cef22e612dc96f6b7136ae2f91f3b4b53f535deb
View file https://github.com/hardikkaurani/durabletask-python/blob/2fe159724a624a909d493d5e98fba5040ca46ca9/tests/azure-functions-durable/test_http_retry.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/353/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/353/files#diff-92099d197a1dbe8f65c36d18cef22e612dc96f6b7136ae2f91f3b4b53f535deb
https://github.com/microsoft/durabletask-python/pull/353/files#diff-92099d197a1dbe8f65c36d18cef22e612dc96f6b7136ae2f91f3b4b53f535deb
https://github.com/microsoft/durabletask-python/pull/353/files#diff-92099d197a1dbe8f65c36d18cef22e612dc96f6b7136ae2f91f3b4b53f535deb
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.