mistweaverco / kulala.nvim

A minimal 🤏 HTTP-client 🐼 interface 🖥️ for Neovim ❤️.
https://kulala.mwco.app
MIT License
595 stars 28 forks source link

Requests with complex query parameters silently fail #8

Closed t-eichmann closed 3 months ago

t-eichmann commented 3 months ago

Some systems like Magento 2 make heavy use of array-notation in query parameters, so you can end up with requests that look like this:

{{host}}/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=state&searchCriteria[filter_groups][0][filters][0][value]=canceled&searchCriteria[filter_groups][0][filters][0][condition_type]=neq&searchCriteria[filter_groups][1][filters][0][field]=entity_id&searchCriteria[filter_groups][1][filters][0][value]={{ID}}&searchCriteria[filter_groups][1][filters][0][condition_type]=gteq&searchCriteria[pageSize]=10

However, when I try to send such a request the request seems to end immediately, in about 20ms, even though the request should take much longer, and the output window remains empty. There is also no error message displayed.

Would be nice to get this to work so that I can finally ditch my old Postman installation.

gorillamoe commented 3 months ago

This will get like highest prio on my todo list, as I can see this happen in other situations quite frequently. Will keep you posted!

t-eichmann commented 3 months ago

Damn, that was quick, thank you, that works now, however, the variable in the query parameters was not resolved to its value. Should I open a new bug for this?

gorillamoe commented 3 months ago

Will fix this ASAP

t-eichmann commented 3 months ago

You are awesome, everything works as it should! Thank you!