Content pfp
Content
@
0 reply
0 recast
2 reactions

Timur Badretdinov pfp
Timur Badretdinov
@destiner.eth
bit the bullet and migrated from fetch/axios to ky what i don't like about fetch: too low-level, too verbose what i don't like about axios: lots of legacy, no built-in retry using the same tool to make requests feels good been running ky for a ~wk in prod, there are some quirks* but overall it's a great tool *awaiting `ky.get().json()` hangs the request, even though it's advertised to work
2 replies
0 recast
3 reactions

saluberis  pfp
saluberis
@saluberis
that's cool const json = await ky('https://example.com', { retry: { limit: 10, methods: ['get'], statusCodes: [413], backoffLimit: 3000 }}).json();
0 reply
0 recast
0 reaction