Dreaming-Codes / axios-tauri-http-adapter

https://www.npmjs.com/package/axios-tauri-http-adapter
MIT License
7 stars 2 forks source link

[help] timeout isn't working #1

Open hygkui opened 10 months ago

hygkui commented 10 months ago

thanks so much for your work.

I was trying to set an timeout configuration, but it not works.

Have you test about this?

as my code:

await axiosClient.request({
        url: 'http://127.0.0.1:11977/logs?page=1&pageSize=1',
        method: 'GET',
        timeout: 20
})

but I got the response in 60ms, and it's not canceled.

Dreaming-Codes commented 10 months ago

@hygkui , I haven't had the chance to test the timeout yet. I plan to do so as soon as I have some free time. It might require reimplementation on my end, though it should be easy. I'll check and get back to you as soon as possible.