Skip to main content

Error Handling

Rise B2B API returns clear error codes and messages for all endpoints. This guide helps you understand and handle errors effectively in your integrations.

Authentication Errors

Common authentication and authorization issues

API Errors

HTTP status codes and API-specific errors

SDK Errors

SDK-specific error handling and troubleshooting

Best Practices

Error handling best practices and patterns

Common Error Codes

Authentication Errors

SIWE Authentication Errors

JWT Authentication Errors

API Errors

Common API Error Responses

Resource-Specific Errors

SDK Error Handling

SDK-Specific Errors

Automatic Error Handling

The Rise SDK provides automatic error handling for common scenarios:

Error Handling Best Practices

  • Implement comprehensive error handling for all API calls
  • Log errors with context for debugging
  • Show user-friendly error messages to end users
  • Implement retry logic with exponential backoff for transient errors
  • Monitor error rates and set up alerts
  • Use SDK error handling when possible

Security Considerations:

  • Never ignore errors or catch them silently
  • Never show technical error messages to end users
  • Never retry indefinitely without backoff
  • Never log sensitive information like private keys or JWT tokens
  • Never assume errors are always client-side

Retry Logic Example

Monitoring and Debugging

Error Logging

Common Debugging Steps

  1. Verify Authentication
    • Verify Rise ID and private key are correct
    • Ensure JWT token is valid and not expired
    • Verify wallet permissions for the Rise account
  2. Validate Parameters
    • Verify all required fields are provided
    • Verify nanoid formats are correct
    • Ensure currency codes are supported
  3. Verify Permissions
    • Verify your role has permission for the operation
    • Verify team/company access permissions
    • Ensure you’re using the correct Rise account
  4. Network Issues
    • Verify internet connectivity
    • Verify API endpoint is accessible
    • Verify rate limiting status

Support Resources

API Reference

Full API specification with error details

Authentication Guide

Authentication troubleshooting

SDK Documentation

SDK error handling examples

Support Email

Get help from our team
Need immediate assistance? Contact our support team at Hello@Riseworks.io with your error details and we’ll help you resolve the issue quickly.