Skip to content

fix: tolerate non-dict 'error' in SDK mapError#17

Merged
acedatacloud-dev merged 1 commit intomainfrom
fix/python-map-error-non-dict
Apr 20, 2026
Merged

fix: tolerate non-dict 'error' in SDK mapError#17
acedatacloud-dev merged 1 commit intomainfrom
fix/python-map-error-non-dict

Conversation

@acedatacloud-dev
Copy link
Copy Markdown
Member

Defensive fix: both Python _map_error and TypeScript mapError now handle the case where the server returns error as a bare string (x402 facilitator) or null, instead of a {code,message} object. Previously the Python SDK crashed with AttributeError and TypeScript silently dropped the message.

Tests added for 5 body shapes on each side. All green locally.

@acedatacloud-dev acedatacloud-dev force-pushed the fix/python-map-error-non-dict branch 2 times, most recently from b29ccc2 to abce92a Compare April 20, 2026 17:32
@acedatacloud-dev acedatacloud-dev force-pushed the fix/python-map-error-non-dict branch from abce92a to 224d180 Compare April 20, 2026 17:36
@acedatacloud-dev acedatacloud-dev merged commit ddfef4b into main Apr 20, 2026
7 checks passed
@acedatacloud-dev acedatacloud-dev deleted the fix/python-map-error-non-dict branch April 20, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants