Can you write me an abstraction for making reliable API requests with retry and log on failure

后端 未结 0 1776
半阙折子戏
半阙折子戏 2021-01-07 06:06

I have a lot of this kind of functions where I call an api using node-fetch.

const fetch = require(\'node-fetch\');

const deny = async (challeng         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题