flexport-common-errors

Featured

Diagnose and fix common Flexport API errors including HTTP status codes, webhook failures, and data validation issues. Trigger: "flexport error", "fix flexport", "flexport not working", "debug flexport API".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Flexport Common Errors ## Overview Quick reference for the most common Flexport API v2 errors. The API returns standard HTTP codes with JSON error bodies containing `code`, `message`, and sometimes `details` fields. ## Error Reference ### 401 Unauthorized — Invalid or Missing API Key ```json { "error": { "code": "UNAUTHORIZED", "message": "Invalid API key" } } ``` **Causes:** Missing `Authorization` header, expired JWT token, revoked API key. **Fix:** ```bash # Verify key is set echo $FLEXPORT_API_KEY | head -c 10 # Test with cURL curl -s -o /dev/null -w "%{http_code}" \ -H "Authorization: Bearer $FLEXPORT_API_KEY" \ -H "Flexport-Version: 2" \ https://api.flexport.com/shipments?per=1 ``` ### 403 Forbidden — Insufficient Permissions **Causes:** API key lacks required scope, IP whitelist blocking, sandbox key used on production. **Fix:** Check key permissions in Flexport Portal > Settings > Developer. Ensure key scope includes the endpoint you are calling. ### 404 Not Found — Resource Does Not Exist ```json { "error": { "code": "NOT_FOUND", "message": "Shipment shp_xxx not found" } } ``` **Causes:** Wrong ID format, resource deleted, using test ID in production. **Fix:** List resources first to get valid IDs: ```bash curl -s -H "Authorization: Bearer $FLEXPORT_API_KEY" \ -H "Flexport-Version: 2" \ https://api.flexport.com/shipments?per=1 | jq '.data.records[0].id' ``` ### 422 Unprocessable Entity — Validation Failed ```json { "error": { "code":...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category