orderly-sdk-debugging

Debug Orderly SDK build, API, WebSocket and account state errors with code examples.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/wuzhong-orderly/orderly-ai-samples --skill orderly-sdk-debugging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orderly-sdk-debugging
Source: https://github.com/wuzhong-orderly/orderly-ai-samples/tree/main/.github/skills/orderly-sdk-debugging
Command: npx skills add https://github.com/wuzhong-orderly/orderly-ai-samples --skill orderly-sdk-debugging

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers quickly identify and resolve common errors and issues encountered while integrating with the Orderly SDK, reducing development time and frustration.

Core Features & Use Cases

  • Error Diagnosis: Provides solutions for build, API, WebSocket, and account state errors.
  • Code Snippets: Offers practical examples for debugging common problems like "Buffer is not defined" or "WebSocket connection issues."
  • Use Case: A developer is facing a "Buffer is not defined" error in their Vite project when using the Orderly SDK. They can consult this Skill to find the exact vite.config.ts modification needed to resolve it.

Quick Start

Use the orderly-sdk-debugging skill to find a solution for the "Buffer is not defined" error.

Frequently Asked Questions about orderly-sdk-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix the "Buffer is not defined" error when using the Orderly SDK in Vite?

To fix the "Buffer is not defined" error in your Vite project, you must modify your `vite.config.ts` file to include the necessary Node.js built-ins polyfills for the Orderly SDK.

Why does my WebSocket connection keep dropping with the Orderly SDK?

WebSocket connection instability with the Orderly SDK is addressed by implementing network monitoring and specific error handling code snippets to track connection states and automatically recover from drops.

How do I troubleshoot invalid API responses from the Orderly SDK?

You can troubleshoot invalid API responses by diagnosing specific API error codes and order-specific errors using the provided debugging guidance and state checking examples to identify the root cause.

Can I use the Orderly SDK debugging guidance for account state issues?

Yes, you can resolve account state issues by applying the provided code examples for state checking, which help monitor your account status and identify problems within the Orderly SDK integration.

What is the best way to handle build setup errors for the Orderly SDK?

The best way to handle build setup errors is to diagnose missing Node.js built-ins and apply the exact configuration modifications recommended in the SDK troubleshooting references to resolve the environment issues.