LogicApp 处理非 200 响应,而不使应用程序失败

huangapple go评论52阅读模式
英文:

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

刚刚找到答案。

在这种情况下,执行可能失败的那一步之后的步骤。

点击位于选项项目位置的三个垂直点。
然后点击运行之后。

记住,这是在可能失败的那一步之后。

英文:

Just found the answer

The step after the one which can fail HTTP in this case.

Click on the three vertical dots on where the options item lives.
Then click on run after

LogicApp 处理非 200 响应,而不使应用程序失败

Remember this is on the step after the step which can fail

huangapple
  • 本文由 发表于 2023年2月8日 23:08:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/75387740.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定