DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsError HandlingDebugging
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Error CodesRate LimitsDebugging
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Debugging

Tips for debugging API requests and SDK issues.

Updated March 29, 2026

On this page
  • Common Issues
  • 1. "Unauthorized" Errors
  • 2. Empty Product Lists
  • 3. CORS Errors
  • Ping / Health Check
  • Enable Debug Mode
  • Network Debugging
  • Next Steps

Common Issues

1. "Unauthorized" Errors

typescript
// Check your API key is set correctly
console.log(process.env.NEXT_PUBLIC_DASH4DEVS_API_KEY)
// Should start with "pk_"

2. Empty Product Lists

  • Verify products are published in the dashboard
  • Check that the API key belongs to the correct organization
  • Try the ping endpoint to verify your key

3. CORS Errors

If you see CORS errors in the browser console, check that your domain is in the allowed origins list. See CORS Errors.

Ping / Health Check

typescript
import dash from "@/lib/dash"

const info = await dash.ping()
// Returns organization info if API key is valid
console.log(info)

Enable Debug Mode

typescript
// Show analytics debug overlay
dash.tracking.debug()

Network Debugging

Open browser DevTools → Network tab to inspect API requests. Look for:

  • Request URL and headers (is the API key being sent?)
  • Response status codes
  • Response body for error messages

Next Steps

  • Error Codes — Full error reference
  • CORS Errors — Fixing CORS issues
  • Authentication Issues — Auth troubleshooting
PreviousRate LimitsNextStates & Regions

On this page

  • Common Issues
  • 1. "Unauthorized" Errors
  • 2. Empty Product Lists
  • 3. CORS Errors
  • Ping / Health Check
  • Enable Debug Mode
  • Network Debugging
  • Next Steps