Developer forum

Forum » Dynamicweb 10 » Timeout ApiService()

Timeout ApiService()

Martin Moen
Reply

We are using a custom command in DW10 admin to trigger a API call from a action menu.

This works fine, but sometimes there is an API call that takes a while, and it looks like the command throws an exception like this:
"One or more errors occured. (A task was cenceled.).

We see that the actual API call was completed just fine, no errors, but it looks like there is some kind of timeout that throws an expection like this?
Can we control the timeout on each call, or what would be the best way to handle scenarios like this?


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Martin,

There's no a lot of information to go on here. How are you making the requests, async or not? How are you waiting for the result if it is async? What is the stack trace of the exception?

In relation to the first two question, it would be beneficial to see some or all of the source code relating the the service and the use of it. If you don't feel comfortable posting it here in a public forum, you can send it to me directly. The stack trace you should be able to get from the event log in the Insights area.

- Jeppe

 
Martin Moen
Reply

Lol... See now that I was abit quick here, I was under the impression that this ApiService was default DynamicWeb functionality, but of course it isnt.
We will look into it once more, since it might be on our side.

 

You must be logged in to post in the forum