3.0.1
Fixed 3
- Surface the server's error message in APIError.message so that failed API requests include actionable details instead of only reporting the status code
- Correct the ports option JSDoc to reflect the actual limit of 15 ports
- Correct the resume option JSDoc on Sandbox.get and Sandbox.getOrCreate to reflect the default value of false
From Vercel Sandbox
Patch Changes
-
Surface the server's error message in
APIError.message. Failed API requests previously reported onlyStatus code 400 is not ok, hiding the actionable detail (e.g.Invalid request: `ports` should NOT have more than 15 items.) inerror.json. The message now includes it directly. (#291) -
Correct the
portsoption JSDoc: the limit is 15 ports (matching the docs and API validation), not 4. (#292) -
Correct the
resumeoption JSDoc onSandbox.getandSandbox.getOrCreate: the default isfalse(the client omits the param and the API defaults to not resuming), nottrue. A stopped persistent sandbox still auto-resumes on the first SDK call that needs a running session. (#293)