fix: return 500 errors in function invoke instead of throwing#15
fix: return 500 errors in function invoke instead of throwing#15netanelgilad wants to merge 1 commit intomainfrom
Conversation
- Modified functions.invoke() to catch errors and return them in { data: null, error } format
- Updated all function tests to expect the new { data, error } response format
- Added specific test case for 500 errors to verify they are returned instead of thrown
- Resolves issue where AxiosError was thrown instead of being returned in error field
Co-authored-by: Netanel Gilad <netanelgilad@users.noreply.github.com>
|
Claude finished @netanelgilad's task —— View job Code Review for PR #15Review Tasks:
SummaryThis PR successfully changes the error handling behavior from throwing exceptions to returning errors in a structured format. The implementation is well-tested and follows good practices. ✅ Positive AspectsCode Quality & Design
Test Coverage
|
🚀 Package Preview Available!Install this PR's preview build with npm: npm i https://pkg.pr.new/base44dev/javascript-sdk/@base44/sdk@6e5f730cd2add298a92cfce430c98dafebf739a2Preview powered by pkg.pr.new — try new features instantly, no NPM release needed! |
Fixes #14
Summary
Test plan
🤖 Generated with Claude Code