question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't handle durable function 202 response with large number of zones

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Add a number of DNS zones that your SP has access to, mine has 27
  2. Open developer tools
  3. Monitor the call to /api/dns-zones
  4. It may return a 202 accepted response instead of 200 with a url to fetch the result

In my case the response was:

{
  "id": "******",
  "statusQueryGetUri": "https://******.azurewebsites.net/runtime/webhooks/durabletask/instances/********?taskHub=DurableFunctionsHub&connection=Storage&code=******==&returnInternalServerErrorOnFailure=true",
  "sendEventPostUri": "https://********.azurewebsites.net/runtime/webhooks/durabletask/instances/******/raiseEvent/{eventName}?taskHub=DurableFunctionsHub&connection=Storage&code=********==",
  "terminatePostUri": "https://********.azurewebsites.net/runtime/webhooks/durabletask/instances/******/terminate?reason={text}&taskHub=DurableFunctionsHub&connection=Storage&code=********==",
  "purgeHistoryDeleteUri": "https://acmedcdcftappsprod.******.net/runtime/webhooks/durabletask/instances/********?taskHub=DurableFunctionsHub&connection=Storage&code=********==",
  "restartPostUri": "https://********.azurewebsites.net/runtime/webhooks/durabletask/instances/******/restart?taskHub=DurableFunctionsHub&connection=Storage&code=******=="
}

and the response from the durable task status query url was wrapped like so:

{
  "name": "GetDnsZones_Orchestrator",
  "instanceId": "***",
  "runtimeStatus": "Completed",
  "input": null,
  "customStatus": null,
  "output": [
    "my-zone",
    "x27...",
  ],
  "createdTime": "2021-06-01T10:08:14Z",
  "lastUpdatedTime": "2021-06-01T10:09:18Z"
}

Environment (please complete the following information):

  • Certificate Type: [e.g. Zone Apex, Sub-domain, Wildcard]
  • Certificate Deploy Target: [e.g. App Service]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shibayancommented, Jun 3, 2021

I have not implemented it to handle 202, but you can create a pull request to improve it. Alternatively, it is recommended that you use the REST API to issue certificates.

0reactions
timjacommented, Jun 3, 2021

Thanks will see how we go, may come back later with a PR.

In general it works fine, but when I raised this issue I tried a few times over a 30minute period and I wasn’t able to get it to load

Read more comments on GitHub >

github_iconTop Results From Across the Web

ActivityFunction does not start when a large number of ...
I am building a fan-in / fan-out system using the Durable Function of Azure Function, but if the Activity Function is called from...
Read more >
Durable Functions Troubleshooting Guide - Azure
Guide to troubleshoot common issues with durable functions.
Read more >
Durable Function not returning large files
I have a Durable Function (version 3) which returns an Excel sheet as base64 encoded text assigned to a property of a simple...
Read more >
Durable Function Fan out with Time limit - remains in " ...
Everything seems to work correctly. If any activity doesn't return within the time limit, the timeout task wins, and the data is processed...
Read more >
How to use Axios interceptors to poll for long running API ...
This post looks at how Axios interceptors can be used to centralise polling logic in your UI application for long-running async API calls....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found