Issue 1:
Describe the bug

I'm getting response like:

data: ��n�8�_���VIJ�-�`.Y
�x&@��)JbM�
I��y�)_d�I�E���!������W����+�p�ܲ�������)�M�߻%��HHa�\k�w��&�����u��l�tGЉ�/��������=��_m���b�;H!A��1�t�R�'�ӏ�a�nZ��r�O;�f2�V-B�M�Y�C�M�V�~o�P���� 3|�j<#<�� �R��(���O���9�4M(��4 �Zm��%�x
玬�9�1����o��������ꮰrE�|Yk�z����xF�$�H:y�iDҙ?w�?��K�#�>���K����z�v��qŕ�,^�ڭu�|�r���P�H�6S���o��V8p)+�4�p T���/N�1&c��qF�&(�Ł�㜆�1���hF�8Jqv���}�1͕AYQ�ղ��1ޯ���+�:̪}�? ��1�&��)�� n�m�
<���.��.�wU�ֵ��ޡ2]�#ÛN��'M��^Gd�S�74�bt�Xo'('"�S��gQ����]$�[��6�M_=A��Xs��Z��d���*��m�(��t��,�N�Y�j�*�����M�9r��jn]ߖ����o�>����3��:��Ѯ˻��*�^�l�I�$�a�O�Y#5;g�
ɾ
�0�&��d$dȋ�=bM#��c��α�j�rܷ�m+
�s��y[n���@��+,;!�����I�l��LW���Jܶ9{�d ���9�PD(ʢ�OJ� _�Ӕ�iD��bt�4�}��O
�}�l[EB�+\�e�vj�v�k�\��F���S����`�GŲ̦M�Lfh��snK]l!�����M�W���a�;+T�n��aʱ�i ��p��θXs��m���C�����0�v�������n�\����hڜ���J�Z�ZA�ҭ��
�.�,v�v���VXH����:�,܆s��A���N�N���f�0��T�̍㉓��6.L���h��`w���������!g%Y�;�$�߻���W�t�We�J�Z�'\�o.?z��kTh��ۍ�/��e����k���e5/:ɋE�
߂���u�Y؞�l�k�$���>E���Y
����?<����M�

This started happening when I upgraded to Axio 1.2.0, while Axios 1.1.3 still works fine.

To Reproduce

Save the code snippet as a file, then run: node <path-to-file>.

Code snippet

import axios from 'axios'
axios({
url: 'https://www.githubstatus.com/api/v2/summary.json'
}).then(statusDetails => {
console.log('data: ', statusDetails.data)
}, statusDetailsError => {
console.log(''error: ', statusDetailsError)
})

Expected behavior

I should get a JSON response like:

data: {
page: {
id: 'kctbh9vrtdwd',
name: 'GitHub',
url: 'https://www.githubstatus.com',
time_zone: 'Etc/UTC',
updated_at: '2022-11-25T05:16:11.057Z'
},
components: [
{
id: '8l4ygp009s5s',
name: 'Git Operations',
status: 'operational',
created_at: '2017-01-31T20:05:05.370Z',
updated_at: '2022-11-09T01:54:03.540Z',
position: 1,
description: 'Performance of git clones, pulls, pushes, and associated operations',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'brv1bkgrwx7q',
name: 'API Requests',
status: 'operational',
created_at: '2017-01-31T20:01:46.621Z',
updated_at: '2022-11-09T01:54:01.951Z',
position: 2,
description: 'Requests for GitHub APIs',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: '4230lsnqdsld',
name: 'Webhooks',
status: 'operational',
created_at: '2019-11-13T18:00:24.256Z',
updated_at: '2022-11-09T01:54:07.258Z',
position: 3,
description: 'Real time HTTP callbacks of user-generated and system events',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: '0l2p9nhqnxpd',
name: 'Visit www.githubstatus.com for more information',
status: 'operational',
created_at: '2018-12-05T19:39:40.838Z',
updated_at: '2022-09-07T00:08:33.519Z',
position: 4,
description: null,
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'kr09ddfgbfsf',
name: 'Issues',
status: 'operational',
created_at: '2017-01-31T20:01:46.638Z',
updated_at: '2022-11-09T01:54:04.113Z',
position: 5,
description: 'Requests for Issues on GitHub.com',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'hhtssxt0f5v2',
name: 'Pull Requests',
status: 'operational',
created_at: '2020-09-02T15:39:06.329Z',
updated_at: '2022-11-09T01:54:06.027Z',
position: 6,
description: 'Requests for Pull Requests on GitHub.com',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'br0l2tvcx85d',
name: 'Actions',
status: 'operational',
created_at: '2019-11-13T18:02:19.432Z',
updated_at: '2022-11-18T04:11:58.048Z',
position: 7,
description: 'Workflows, Compute and Orchestration for GitHub Actions',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'st3j38cctv9l',
name: 'Packages',
status: 'operational',
created_at: '2019-11-13T18:02:40.064Z',
updated_at: '2022-11-09T01:54:04.600Z',
position: 8,
description: 'API requests and webhook delivery for GitHub Packages',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'vg70hn9s2tyj',
name: 'Pages',
status: 'operational',
created_at: '2017-01-31T20:04:33.923Z',
updated_at: '2022-11-09T01:54:05.104Z',
position: 9,
description: 'Frontend application and API servers for Pages builds',
showcase: false,
start_date: null,
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'h2ftsgbw7kmk',
name: 'Codespaces',
status: 'operational',
created_at: '2021-08-11T16:02:09.505Z',
updated_at: '2022-11-20T19:55:55.204Z',
position: 10,
description: 'Orchestration and Compute for GitHub Codespaces',
showcase: false,
start_date: '2021-08-11',
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
},
{
id: 'pjmpxvq2cmr2',
name: 'Copilot',
status: 'partial_outage',
created_at: '2022-06-21T16:04:33.017Z',
updated_at: '2022-11-25T04:13:55.392Z',
position: 11,
description: null,
showcase: false,
start_date: '2022-06-21',
group_id: null,
page_id: 'kctbh9vrtdwd',
group: false,
only_show_if_degraded: false
}
],
incidents: [
{
id: '69flmdbxhtsk',
name: 'Incident with Copilot',
status: 'investigating',
created_at: '2022-11-25T04:13:49.067Z',
updated_at: '2022-11-25T05:16:11.047Z',
monitoring_at: null,
resolved_at: null,
impact: 'minor',
shortlink: 'https://stspg.io/dtmycfy7r5p6',
started_at: '2022-11-25T04:13:49.061Z',
page_id: 'kctbh9vrtdwd',
incident_updates: [Array],
components: [Array]
}
],
scheduled_maintenances: [],
status: { indicator: 'minor', description: 'Minor Service Outage' }
}

Axios Version

1.2.0

Adapter Version

No response

Browser

Node.js

Browser Version

N/A

Node.js Version

16.18.0

OS

macOS 13

Additional Library Versions

N/A

Additional context/Screenshots

N/A

Issue 2:
I'm trying to use Axios to test my data management on my Vue.js app. I'm able to do the axios.get(), but the axios.post() is returning a 404 error, indicating the JSON file was not found.

Here is how my Vue component script seems like:

<script>
import axios from "axios";

export default {
name: "App",
data() {
return {
title: "Códigos FGO",
accounts: null
};
},
methods: {
getAccounts() {
axios
.get("./json/accounts.json")
.then(json => (this.accounts = json.data));
},
postAccount(acc) {
axios
.post("./json/accounts.json", acc)
.then(response => console.log(response));
}
},
created() {
this.getAccounts();
console.log("Foi");
this.postAccount({
id: 3,
code: "TesteAxiosComponent",
server: "NA",
ssr: 5,
notable: [
{
name: "Ramon",
level: 100,
npLvl: 5
}
]
});
}
};
</script>

Environment:

Axios Version 0.19.2

OS: Pop!_OS 20.04

Browser Chrome

Vue.js 2.6.11

EDIT: Please ignore the duplicated error, it was made because I saved the file without refreshing the page.