{"id":24947,"library":"axios-proxy-fix","title":"axios-proxy-fix","description":"A fork of axios (Promise based HTTP client for browser and Node.js) with proxy support fixes. v0.16.3 is a legacy version based on axios 0.16.x, which is no longer actively maintained. Note that the original axios is at v1.x and has breaking changes from v0.x. This fork is not the official axios and may have diverged. Use official axios for modern projects.","status":"abandoned","version":"0.16.3","language":"javascript","source_language":"en","source_url":"https://github.com/mistermoe/axios","tags":["javascript","xhr","http","ajax","promise","node","typescript"],"install":[{"cmd":"npm install axios-proxy-fix","lang":"bash","label":"npm"},{"cmd":"yarn add axios-proxy-fix","lang":"bash","label":"yarn"},{"cmd":"pnpm add axios-proxy-fix","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"HTTP redirect following in Node.js","package":"follow-redirects","optional":false},{"reason":"Buffer type checking helper (Node.js)","package":"is-buffer","optional":false}],"imports":[{"note":"For CommonJS use require(). For ESM use default import.","wrong":"const axios = require('axios-proxy-fix')","symbol":"axios","correct":"import axios from 'axios-proxy-fix'"},{"note":"This is a type export, use 'import type' with TypeScript.","wrong":"import { AxiosInstance } from 'axios-proxy-fix'","symbol":"AxiosInstance","correct":"import type { AxiosInstance } from 'axios-proxy-fix'"},{"note":"AxiosResponse is a named type, not a default export.","wrong":"import AxiosResponse from 'axios-proxy-fix'","symbol":"AxiosResponse","correct":"import type { AxiosResponse } from 'axios-proxy-fix'"}],"quickstart":{"code":"import axios from 'axios-proxy-fix';\n\n// Make a GET request\naxios.get('/user?ID=12345')\n  .then(function (response) {\n    console.log(response.data);\n  })\n  .catch(function (error) {\n    console.log(error);\n  });\n\n// POST request\naxios.post('/user', { firstName: 'Fred', lastName: 'Flintstone' })\n  .then(response => console.log(response))\n  .catch(error => console.log(error));\n\n// Using axios config\naxios({\n  method: 'get',\n  url: 'https://api.example.com/data',\n  params: { key: 'value' }\n}).then(response => {\n  console.log(response.data);\n});","lang":"typescript","description":"Basic GET/POST requests with axios-proxy-fix (v0.16.x style). Note that error handling uses catch()."},"warnings":[{"fix":"Consider using official axios with manual proxy configuration, or use http-proxy-agent and https-proxy-agent.","message":"This is a fork of the original axios, not maintained by axios team. Proxy fixes may not be in official axios. Use at your own risk.","severity":"gotcha","affected_versions":">=0.16.0"},{"fix":"Do not mix axios v1.x and v0.x. Use consistent version.","message":"axios v0.x to v1.x has breaking changes: request/response interceptors signature, cancellation with AbortController, etc. This fork is based on v0.16.x.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Run: npm uninstall axios-proxy-fix && npm install axios@latest","message":"axios-proxy-fix v0.16.3 is outdated. No further updates likely. Consider migrating to official axios v1.x.","severity":"deprecated","affected_versions":"=0.16.3"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure proxy object has host and port properties: proxy: { host: 'localhost', port: 8080 }","cause":"Proxy configuration missing or incorrectly set in axios options.","error":"Cannot read property 'protocol' of undefined"},{"fix":"Use official axios and set adapter explicitly if needed: adapter: require('axios/lib/adapters/http')","cause":"Mismatch between axios version and adapter (e.g., in React Native or testing).","error":"TypeError: adapter is not a function"},{"fix":"Add error handling that checks error.response: if (error.response) { ... } else { ... }","cause":"Response object is null, often due to network error (e.g., DNS failure) not handled.","error":"Uncaught TypeError: Cannot read properties of null (reading 'status')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}