Dmitriy Mozgovoy

Results 118 comments of Dmitriy Mozgovoy

Can you reproduce the issue [here](https://codesandbox.io/s/axios-issue-5067-gqt9rq?file=/src/index.js)?

On Axios v0.27.2 that code logs: ```js Timeout - RETRY 1 Timeout - RETRY 2 Timeout - RETRY 3 node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise */); ^ AxiosError: Nock: No match...

`./lib/` contains private Axios modules, they are not meant to be exported directly. They may be changed at any time, and such changes will not be considered a violation of...

Internally, Axios config.headers is mutated into an AxiosHeaders instance, but the request method only accepts a plain headers object. As a temporary fix, you can convert the headers back to...

> let axiosAbortSignal: GenericAbortSignal = new AbortSignal() > let typescriptAbortSignal: AbortSignal = axiosAbortSignal Why do you need this? [`GenericAbortSignal`](https://github.com/axios/axios/blob/9bd53214f6339c3064d4faee91c223b35846f2dd/index.d.ts#L212-L217) is a general/partial interface of AbortSignal. You cannot assign a generic...

I was going to add support for it (both `form-data` and `formdata-node`) when I did a PR with the FormData enhancement for Axios about six months ago, but then I...

@davidmcl Try to unset the `Content-Type` header for GET requests, since GET request can't have a body (but in your case, it is a string 'null'). ``` 2021-10-22T16:53:45.313348826Z url: 'https://v3.recurly.com/***removed***',...

> only when both are present does it fail. @davidmcl Yes, this is expected behavior since `null` (or number|string|boolean|object) is a valid JSON payload as defined in the RFC, so...

> Would it not be acceptable/consistent when data is passed as null no, empty body is not a valid JSON payload, so JSON.parse('') will throw an exception > would the...