Registry / http-networking / axios-https-proxy-fix

axios-https-proxy-fix

JSON →
library0.17.1jsnpmunverified

This package, `axios-https-proxy-fix`, is an unmaintained fork of the popular `axios` promise-based HTTP client, specifically created to address a known bug in older `axios` versions. The original issue caused an 'ERR_BAD_PROTOCOL' or '403' error when attempting to make HTTPS requests through an HTTP proxy. It ships with version `0.17.1`, last published in December 2017. As an old fork, it lacks the features, performance improvements, and security patches present in the actively maintained official `axios` library (which is currently in its `1.x` and later versions and has evolved its proxy handling). Its primary differentiator was its proxy fix, which is now largely addressed or handled through standard configurations or companion libraries (like `https-proxy-agent`) in modern `axios`.

npm install axios-https-proxy-fix
INSTALL
IMPORT
SIG · AXIOS-HTTPS-PROXY-
A
axios-https-proxy-fix
http-networkingjavascriptv0.17.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

axios
import axios from 'axios-https-proxy-fix';
const axios = require('axios-https-proxy-fix');
For ESM in Node.js or browser environments; CommonJS users should use `require`.
AxiosRequestConfig
import type { AxiosRequestConfig } from 'axios-https-proxy-fix';
TypeScript type import for request configuration. Types are based on Axios 0.17.1.
AxiosResponse
import type { AxiosResponse } from 'axios-https-proxy-fix';
TypeScript type import for response objects. Types are based on Axios 0.17.1.

This quickstart demonstrates how to make GET and POST requests using `axios-https-proxy-fix`, including basic proxy configuration for HTTP proxies handling HTTPS traffic, and error handling.

import axios from 'axios-https-proxy-fix'; // Configure Axios with a proxy (example for an HTTP proxy handling HTTPS traffic) // In a real application, replace with actual proxy details and consider environment variables const instance = axios.create({ baseURL: 'https://jsonplaceholder.typicode.com', timeout: 5000, proxy: { protocol: 'http', host: 'your.proxy.host', port: 8080, auth: { username: process.env.PROXY_USERNAME ?? '', password: process.env.PROXY_PASSWORD ?? '' } } }); // Make a GET request using the configured instance instance.get('/todos/1') .then(response => { console.log('Fetched data:', response.data); console.log('Status:', response.status); }) .catch(error => { if (error.response) { console.error('Request failed with status:', error.response.status); console.error('Response data:', error.response.data); } else if (error.request) { console.error('No response received:', error.request); } else { console.error('Error setting up request:', error.message); } }); // Perform a POST request directly without instance (using default global config) axios.post('https://jsonplaceholder.typicode.com/posts', { title: 'foo', body: 'bar', userId: 1, }, { proxy: { protocol: 'http', host: 'another.proxy.host', port: 3128 } }) .then(response => { console.log('Posted data:', response.data); }) .catch(error => { console.error('POST error:', error.message); });
Debug
Known issues
breakingThis package is an abandoned fork of Axios version 0.17.1 (released December 2017). It is incompatible with modern Axios (v0.20+ and v1.x+) and lacks numerous features, bug fixes, and performance improvements present in the actively maintained official `axios` library. Do not use for new projects.
fix
Migrate to the official `axios` package. For HTTPS proxy issues, consider modern `axios` proxy configuration or libraries like `https-proxy-agent`.
affects: >=0.17.1
deprecatedThe `axios-https-proxy-fix` package is no longer maintained. Its last update was in 2017, meaning it will not receive security updates, bug fixes, or compatibility enhancements. Using unmaintained software introduces significant risks.
fix
Switch to the official `axios` package (npm: `axios`). The issues `axios-https-proxy-fix` addressed are either resolved in modern `axios` or handled through robust alternative patterns.
affects: >=0.17.1
gotchaUsing this outdated package exposes applications to potential security vulnerabilities. It lacks years of security patches and best practices implemented in the main `axios` project. This includes vulnerabilities related to HTTP request handling, data parsing, and network interactions.
fix
Immediately replace `axios-https-proxy-fix` with the current stable version of the official `axios` package to benefit from active security maintenance.
affects: >=0.17.1
gotchaThe TypeScript type definitions included with this package are based on an ancient version of Axios. They will not reflect the API changes and new features introduced in `axios` v0.20 and especially v1.x, leading to type errors and incorrect IntelliSense if used in a modern TypeScript project.
fix
Use the official `axios` package, which provides up-to-date and accurate TypeScript definitions for its current API.
affects: >=0.17.1
Errors
Common errors & fixes
Error: tunneling socket could not be established, statusCode=403
This error or similar 'ERR_BAD_PROTOCOL' indicates a problem establishing an HTTPS connection through an HTTP proxy, often due to how older Axios versions handled the 'CONNECT' method.
fix
Upgrade to the official `axios` package (v0.2x or v1.x+). Modern Axios has improved proxy handling. If problems persist, consider using `https-proxy-agent` with Axios's `httpsAgent` option, or ensure your proxy configuration is correct for your proxy server and `axios` version.
Property 'someNewAxiosFeature' does not exist on type 'AxiosInstance'.
Attempting to use features or configurations introduced in newer versions of the official `axios` library with the outdated `axios-https-proxy-fix` fork.
fix
Replace `axios-https-proxy-fix` with the current stable `axios` package (`npm install axios`). Features are backported to forks only if actively maintained, which this one is not.
ModuleNotFoundError: No module named 'axios-https-proxy-fix'
The package was not installed or is not resolvable in the current environment.
fix
Ensure the package is installed via `npm install axios-https-proxy-fix` or update your import paths to use the official `axios` package after migrating.
Upgrade
Version history
0.17.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources