I'm having an issue with my code consisting on me having a really HUGE url. That "reference" goes on for a long time, and I've tested the same request taking half of those references from it and it worked as intended. Is there a way for me to raise the maximum size of the url?
const url = `http://localhost:1234/reports/docName.pdf?ID=idOfTheDocument&reference=ref1%20ref2%20ref3%20ref4...`;
const request = await axios.get(url, {
auth: {
username: 'login',
password: 'password',
maxContentLength: 100000000,
maxBodyLength: 1000000000
},
responseType: 'arraybuffer',
});
O know it isn't a good idea, but it's a legacy code I didn't want to refactor.