In Microsoft Azure Logic Apps, I have a do until loop which loops through a get request until it is completed. But the HTTP Get request is giving the following error to do with timeout. It seems that even with 4 retries within 2 minutes, the http get request times out.
BadRequest. Http request failed: the server did not respond within the
timeout limit. Please see logic app limits at
https://aka.ms/logic-apps-limits-and-config#http-limits.
ActionFailed. An action failed. No dependent actions succeeded.
4 retries occurred.
Until Loop Control elaboration
Related
There are list of items in the array. For each Item we need to fetch data from the server on componentMount. All requests are triggered in parallel but the request are getting stalled. All requests use same connection id as well. The target domain is in HTTP 2 as well. Last request is stalled for almost 4s. Do anyone have any idea?
API calls:
Last call(almost stalled for 4s):
Request should not stalled.
I am building a webhook to connect Shopify with my dispatch.
Shopify Webhook sends a json request and wait for 5 seconds, if it doesn't receive 200 back, it terminate the request and try another one.
My server at the moment handle this straightaway
receive a shopify request
sorting order data from shopify
send request to dispatch server
check response from the server
response to shopify
with this sometimes it takes slightly longer than 5 seconds, so shopify send requests again while the server is updating the dispatch.
What's the best solution to fix this?
I am thinking two solutions
a. Response 200 back to shopify first then process dispatch (I am not sure how to do this with python2.7)
b. Create a database to store shopify request, so shopify request just create an order record then it will receive 200 back (which should take less than 5 seconds). With this set up crontask or celery task to update dispatch
Any suggestions?
Better to use task queues. Use celery to do time taking tasks in background. As soon as you get the response from shopify, give your task to celery so that it can run the tasks in background, then you can send the 200 response back.
I have built an angular app which calls a REST API to insert data into MySQL DB.
The logic is if the app doesn't get response within 10 seconds, it retries the same request.
At the server, there are some logic applied to calculate some values which are required to insert the data. So when the number of insert records passed by the client is more, the request cannot be completed within 10 seconds. The client aborts the request and retries the same. This causes multiple records insert.
Could someone suggest a proven solution for the same?
Thanks in advance.
Only do a retry on an error, otherwise you are getting duplicates for responses don't error (eventually giving you a response).
if i try to update more than one appointment with the Service.UpdateItems methode the server returns an 503 error.
My Code:
service.UpdateItems(appointments,folderID,ConflictResolutionMode.AutoResolve, null, SendInvitationsOrCancellationsMode.SendToNone);
Updating a single appointment with the Appointment.Update methode works.
Has anyone an idea why Service.UpdateItems does not work ?
You may be getting throttled by Exchange by trying to execute too many updates at once. Try smaller batches - of 10 items, or try spacing your requests with longer breaks between them.
As it is described here, there are three response codes which may indicate a throtting problem:
HTTP Status 503 Indicates that EWS requests are queuing with IIS. The client should delay sending additional requests until a later time.
HTTP Status 500 - Indicates an internal server error with the ErrorServerBusy error code. This indicates that the client should delay sending additional requests until a later time. The response may contain a back off hint called BackOffMilliseconds. If present, the value of BackOffMilliseconds should be used as the duration until the client resubmits a request.
HTTP Status 200 - Contains an EWS schema-based error response with an ErrorInternalServerError error code. An inner ErrorServerBusy error code may be present. This indicates that the client should delay sending additional requests until a later time.
Behavior of my application:
HTTP Request Login
..JSON Path Extractor - Im extracting the session id
Debug Sample - Checking the session id
HTTP Request -- Im passing the session id to these requests
HTTP Request -- Im passing the session id to these requests
HTTP Request -- Im passing the session id to these requests
If I run the above script for one time Im getting the expected results above requests are passing step by step process.
If I run the above script with - Number of Threads as 5 .Then Login is hitting for 3 times other urls hitting for 2 times.
I need to run the above script one order for number of times.
I'm not seeing any regular expression extractor which you would need to pass in the session ID from one request to another. Also, if your back end uses cookies make sure to add the http cookie manager.
Here are some good JMeter getting started videos which also cover what you're trying to do:
http://blazemeter.com/blog/jmeter-tutorial-video-series