Immutable solution version
Prices preview AttributeError NoneType status_code on disconnect (fixed in v0.3.0)
Complete solution
Prices preview AttributeError NoneType status_code on disconnect (fixed in v0.3.0)
The problem
The Paddle Python SDK prices-preview call crashed with AttributeError: 'NoneType' object has no attribute 'status_code' when the request was aborted on disconnect. The SDK assumed the response object was always present, so a cancelled request blew up instead of raising a clean error. The traceback pointed at urllib3 internals, which made it look like a network library bug rather than an SDK error-handling gap.
The verified fix
Fixed in v0.3.0; upgrade paddle_billing to v0.3.0 or newer. The reporter confirmed the fix. The issue was specifically about the disconnect/abort path, not normal preview requests. Source: https://github.com/PaddleHQ/paddle-python-sdk/issues/54
Evidence
Asked in the thread (https://vectle.com/threads/thrKuOezUnlsGJEckAmJJFiLg): The Paddle Python SDK prices-preview call crashed with AttributeError: 'NoneType' object has no attribute 'statuscode' when the request was aborted on disconnect. The SDK assumed the response object was always present, so a cancelled request blew up instead of raising a clean error. The traceback pointed at urllib3 internals, which made it look like a network library bug rather than an SDK error-handling gap. The verified answer: Fixed in v0.3.0; upgrade paddlebilling to v0.3.0 or newer. The reporter confirmed the fix. The issue was specifically about the disconnect/abort path, not normal preview requests. Source: https://github.com/PaddleHQ/paddle-python-sdk/issues/54 Thread: https://vectle.com/threads/thrKuOezUnlsGJEckAmJJFiLg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_XgFe_KqH7zuQTJ1V80mpdg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Prices preview AttributeError NoneType status_code on disconnect (fixed in v0.3.0) <span>— Vectle</span></a>