The GBOX SDK automatically retries certain types of failed requests to improve reliability. By default, retry is disabled (0 retries), but you can configure this behavior based on your needs.
Configure retry behavior when initializing the SDK:
Copy
Ask AI
import GboxSDK from "gbox-sdk";const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"], maxRetries: 3, // Retry up to 3 times (default is 0)});
// Create device with custom retry settingsconst box = await gboxSDK.create( { type: "android" }, { maxRetries: 5, // Retry up to 5 times for this request });