Encountering an unusual issue here. Currently, utilizing Axios for a GET request. In order to send multiple values in the params object, I include an object named dataObject
. Surprisingly, when I just send the object itself, the response received is incorrect. However, manually typing key-value pairs from the object results in a correct response. Thus, aiming for my sent params to resemble this format:
https://i.sstatic.net/b250I.png
Nevertheless, when only sending the object, it appears as follows: https://i.sstatic.net/J8MNL.png
Hence, speculation arises regarding potentially extracting individual key-value pairs from the object through some sort of operation, which remains elusive at the moment.
Below showcases the two different Axios versions utilized:
return axios.get(GET_ENDPOINT, {
params: {
dataObject
return axios.get(GET_ENDPOINT, {
params: {
//dataObject
20090519001:'',
iid:1444430872256,
accessoryIdString:'',
mode:'addToCart',
quantity:1,