英文:
LogicApp HTTP Handling non 200 response without the app failing
问题
我有一个逻辑应用,它获取一些信息,对这些信息进行迭代,然后发出一些HTTP请求。
其中一些请求会成功,预期有些时候会失败。
我希望逻辑应用“不失败”,仅仅因为有时候一个GET请求会失败,而我们对此可以接受。
这是重要的原因是我们正在循环遍历一个值数组。
每个GET请求部分地由我们正在迭代的数据项形成。
我们希望那些成功的请求继续工作,并且基本上忽略错误。
循环如下
对于每个ID
GET请求
如果失败则继续
下一个ID
在运行结束时,应用标记为成功,列表中的所有ID都已收到GET请求。
英文:
I have a logic app which grabs some info, iterates over the information and then makes some HTTP requests.
Some of these requests will succeed, and it is expected some will fail from time to time.
I would like the logic app to "not fail" just because sometimes a get request will fail when we're okay for that to happen.
The reason this is important is that we're looping over an array of values.
Each GET request is partly formed from the data item we are iterating over.
We want the requests which a successful to continue working and basically ignore errors.
The loop is like this
Get list of IDs
FOR EACH ID
GET REQUEST
IF FAIL CONTINUE
NEXT ID
At the end of the run, the app is marked as success and all IDs in the list have had a GET request.
Thanks in advance
答案1
得分: 1
刚刚找到答案。
在这种情况下,执行可能失败的那一步之后的步骤。
点击位于选项项目位置的三个垂直点。
然后点击运行之后。
记住,这是在可能失败的那一步之后。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论