Closed ponikrf closed 2 years ago
looks like no one cares about it... it is very hard to track that issue if the ttl is a few hours, in addition it adds requestUrls array with requested urls, which grows over time and leads to out of memory crash...
the library with such behavior is sabotage
hello, found a problem related to modification of request parameters
Let me give you an example:
This code output:
The problem is that "request" modifies the "options" variable, which after some time leads to an error 401 (not authorized)
I can solve the problem simply by copying the variable, but this is wrong!
It is simply unnecessary to modify the object, but create a new one using a set of default options and a set of modification options
Now if someone is faced with a similar problem, you can solve it like this: