Zipy
  • Welcome to Zipy ai
  • Getting Started
    • Install Zipy
    • Installing with Google Tag Manager
    • Supported frameworks
    • Security Overview
    • Sensitive User Data
    • SOC2 Type II
  • Zipy For Mobile
    • React Native Setup
      • Install React Native
      • Input Masking
      • Session Replay
      • Screen Transition Capture
      • Gesture Capturing
      • Unhandled Exception Capture
      • Custom Logging
      • Fetch and XHR Network Calls
      • Profiling
      • Device Information Capture
      • Session URL Retrieval
      • Identify Users
      • Firebase Integration
    • Flutter Setup
      • Install Flutter
      • Session Replay
      • Input Masking & Custom Masking
      • Screen Transition Capture
      • Gesture Capturing
      • Unhandled Exception Capture
      • Custom Logging
      • Http Network Calls
      • Dio Network Calls
      • Profiling
      • Device Information Capture
      • Session URL Retrieval
      • Identify Users
      • Firebase Integration
      • Session Recording Control
      • Data Sanitization
  • iOS Setup
    • Install in an iOS app
    • Identify Users
    • Screen Tracking & Tagging
    • Custom Logging
    • Session URL Retrieval
    • Session Recording Control
    • Input Masking & Custom Masking
  • Chrome Extension
    • Zipy Plug and Play Support
  • Configure
    • Zipy Recording Control
    • Release Version
    • Identifying Users
    • Adding Custom Identifiers
    • Anonymize Users
    • Source Maps
    • Blocking PII data
    • Ignoring Errors/Noise
    • npm Update
    • Support Integration
    • Session Stitching (rootDomain)
  • Product Features
    • Custom Events
    • Session Replay
    • Errors
    • Analytics
    • Time Filters
    • Multiple Filters
    • Clicked Element Filters
    • Manage Teams
    • Stack Trace
    • Console Logs
    • Network Requests
    • Network Headers and Payload
    • Custom Logs
    • Live Users
    • Alerts
      • Slack Alerts
      • Email Alerts
      • Live Alerts
      • Custom Alerts
    • Auto Resolve Errors
    • Zipy Labels Plugin
    • iFrame Support
    • API Performance
    • Heatmaps
    • Page Performance
    • Seen/Unseen Sessions
    • Public Session URL
  • FAQs
    • Install Zipy
    • Session Replay Definition
    • Error Tracking
    • Error Classification
    • Environment Support
    • Impact on your App
    • Performance Impact
    • Mobile Support
    • Network Data Capture
    • API Performance Diagnostic Help
      • High DNS Time
      • High SSL Connection Time
      • High Connection Setup Time
      • Large API Response Size
      • High Response Time
      • Compression Not Enabled
      • Server side API Failures
      • Client side API Failures
      • Insecure Connections
  • Troubleshooting
    • Errors in npm
    • Network header missing in Zipy
    • Can't see user data in sessions
    • No recordings or errors visible
    • No network timing split available
  • Product Videos
    • Ask AI
    • Getting Started
    • Session Replay
    • Multiple Project Creation
    • Team Management
    • Alerting on Slack
    • Time Filters and Daily Alerts
    • Custom Identifiers
    • Ignore Errors
    • Identify Users
    • Dashboard
    • Resolve Errors
    • New Error Digest
    • Jira and Slack
    • Online/Offline Network Status
    • Zipy on Zipy
      • Zipy Product Roadmap
  • Whats new
    • Product Updates
  • Legal & Policy
    • Terms of Service
    • Privacy Policy
    • Fulfillment Policy
    • Cookie Policy
    • Acceptable Usage Policy
    • Zipy Sub Processor List
  • Integration
    • Azure DevOps
    • Factors
    • RB2B
    • Webflow
    • WordPress
    • Amplitude
    • Coralogix
    • DevRev
    • Drift
    • Errorception
    • Freshchat
    • Google Analytics
    • Heap
    • HelpScout
    • Honeybadger
    • Hubspot
    • Intercom
    • Mixpanel
    • New Relic
    • Pendo
    • Raygun
    • Rollbar
    • Segment
    • Sentry
    • Shopify
    • Sumo Logic
    • TrackJS
    • Zendesk
Powered by GitBook
On this page
  • Why am I seeing this diagnostic?
  • How do I fix this?
  1. FAQs
  2. API Performance Diagnostic Help

Client side API Failures

Why am I seeing this diagnostic?

When your webapp makes API calls, you expect to receive successful responses from the API servers. However, API failures can occur, and sometimes the failures could be due to a problem with the request made by your webapp. These failures are typically indicated by HTTP status codes in the 4xx range, such as 400, 401, 404, etc. These codes generally indicate client-side errors. Some common 4xx status codes include: 400 Bad Request, 401 Unauthorized, 404 Not Found, 405 Method Not Allowed etc.

When your APIs are failing with 4xx errors, it can have several implications for you as a webapp developer:

  1. Incomplete or Invalid Requests: The 4xx errors indicate that there might be issues with the requests being made from your webapp to the API servers. It could be due to missing or incorrect parameters, poorly formatted data, or authentication problems.

  2. Failed Authentication or Authorization: If you encounter 401 or similar status codes, it means that the API requires authentication, and your webapp needs to provide valid credentials. It's essential to ensure that your webapp handles authentication correctly and includes the necessary credentials in the API requests.

  3. Resource Not Found: When receiving a 404 status code, it suggests that the requested resource or endpoint does not exist on the API server. This could be due to outdated URLs or incorrect API configurations on your webapp.

  4. Data Validation and Input Sanitization: Properly validate and sanitize user input on the client-side before making API requests. This helps prevent malformed or invalid requests that could lead to 4xx errors.

How do I fix this?

To address API failures with 4xx errors, consider the following:

  1. Request Validation: Ensure that your webapp validates user input and request data to prevent malformed or invalid requests from being sent to the API servers.

  2. Authentication and Authorization: Implement proper authentication and authorization mechanisms in your webapp to ensure that valid credentials are provided when required by the API. Handle authentication failures gracefully and guide users on how to authenticate correctly.

  3. Error Handling and User Feedback: Implement error handling logic in your webapp to handle 4xx errors and provide meaningful error messages to users. Communicate the nature of the error and suggest possible solutions or actions.

  4. API Documentation and Testing: Familiarize yourself with the API documentation and test your API calls thoroughly. Ensure that you are using the correct endpoints, including the required parameters and headers, to avoid 4xx errors.

PreviousServer side API FailuresNextInsecure Connections

Last updated 1 year ago