App Service Time out in 230 Sec

%3CLINGO-SUB%20id%3D%22lingo-sub-1525680%22%20slang%3D%22en-US%22%3EApp%20Service%20Time%20out%20in%20230%20Sec%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1525680%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20couple%20of%20App%20Service%20which%20takes%20more%20than%20230%20Sec.%20We%20can%20not%20use%20Durable%20function%20or%20Webjobs.%20how%20can%20we%20increase%20the%20time%2C%20as%20we%20have%20a%20task%20running%20which%20takes%20about%2010%20mins.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBiplab%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1526012%22%20slang%3D%22en-US%22%3ERe%3A%20App%20Service%20Time%20out%20in%20230%20Sec%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1526012%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F103991%22%20target%3D%22_blank%22%3E%40Biplab%20Sah%3C%2FA%3E%3C%2FP%3E%3CP%3EDo%20you%20have%20several%20App%20Services%20or%20Web%20Apps%3F%20Can%20you%20please%20try%20to%20explain%20why%20you%20cannot%20use%20Webjobs%20or%20durable%20functions%3F%20It%20may%20help%20to%20understand%20your%20use%20case.%20On%20top%20of%20that%20I%20suggest%20you%20cross-post%20your%20question%20in%20the%20Apps%20on%20Azure%20community%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fapps-on-azure%2Fbd-p%2FAppsonAzure%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fapps-on-azure%2Fbd-p%2FAppsonAzure%3C%2FA%3E%3C%2FP%3E%3CP%3ECheers%3CBR%20%2F%3ERolf%3CBR%20%2F%3E%3CBR%20%2F%3E%23MCT%20%23LearnWithRolf%20%23TheCloud42%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1526916%22%20slang%3D%22en-US%22%3ERe%3A%20App%20Service%20Time%20out%20in%20230%20Sec%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1526916%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F659330%22%20target%3D%22_blank%22%3E%40Rolf-42%3C%2FA%3E%26nbsp%3BThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20The%20application%20runs%20both%20on%20Azure%20as%20well%20as%20on-premise.%20using%20a%20webjob%20or%20durable%20function%20will%20put%20a%20dependency%20on%20cloud.%3C%2FP%3E%3CP%3EI%20have%20couple%20of%20App%20Services.%20App%20Service%201%20calls%20App%20Service%202%2C%20and%20if%20App%20Service%202%20takes%20more%20than%20230%20seconds%20to%20respond%2C%20the%20request%20throws%20500.%20I%20tried%20Async%20Await%20and%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CA%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Farchitecture%2Fpatterns%2Fasync-request-reply%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Farchitecture%2Fpatterns%2Fasync-request-reply%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Farchitecture%2Fpatterns%2Fasync-request-reply%3C%2FA%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIt%20didn't%20help%20me%20out.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThanks%2C%3C%2FDIV%3E%3CDIV%3EBiplab%20Sah%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527511%22%20slang%3D%22en-US%22%3ERe%3A%20App%20Service%20Time%20out%20in%20230%20Sec%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527511%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F103991%22%20target%3D%22_blank%22%3E%40Biplab%20Sah%3C%2FA%3E%3C%2FP%3E%3CP%3EAs%20you%20can%20see%20from%20this%20link%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FList_of_HTTP_status_codes%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FList_of_HTTP_status_codes%3C%2FA%3E%26nbsp%3Ban%20error%20500%20is%20an%20internal%20server%20error.%20So%20you%20need%20to%20do%20some%20debugging%20in%20the%20call%20between%20service%201%20and%20service%202%20like%20which%20authentication%2C%20which%20permission%2C%20which%20URL%2FURI%20etc.%3C%2FP%3E%3CP%3EAnd%20yes%2C%20going%20towards%20async%20is%20a%20good%20cloud%20development%20principle.%20Maybe%20you%20can%20also%20consider%20putting%20your%20apps%20into%20containers%20to%20reduce%20dependencies%20to%20cloud%20services.%3C%2FP%3E%3CP%3ESome%20source%20code%20would%20help%20to%20get%20into%20the%20details%20but%20again%20that%20is%20probably%20better%20asked%20in%20the%20developer%20community%20than%20in%20the%20Microsoft%20Learn%20community.%3C%2FP%3E%3CP%3EGood%20luck%3C%2FP%3E%3CP%3ECheers%3CBR%20%2F%3ERolf%3CBR%20%2F%3E%3CBR%20%2F%3E%23MCT%20%23LearnWithRolf%20%23TheCloud42%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1528156%22%20slang%3D%22en-US%22%3ERe%3A%20App%20Service%20Time%20out%20in%20230%20Sec%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1528156%22%20slang%3D%22en-US%22%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F659330%22%20target%3D%22_blank%22%3E%40Rolf-42%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20do%20understand%20the%20scenario.%20the%20same%20application%20run%20great%20on%20IIS.%20it's%20an%20issue%20of%20app%20service%20request%20time%20out%2C%20which%20I%20have%20narrowed%20down%20and%20tested.%3CBR%20%2F%3Echeck%20this%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F30795%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F30795%3C%2FA%3E%3CBR%20%2F%3EAs%20per%20your%20suggestion%2C%20I%20have%20put%20the%20question%20in%20the%20other%20group%20too%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fapps-on-azure%2Fapp-service-timeout-in-230-sec%2Fm-p%2F1526934%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fapps-on-azure%2Fapp-service-timeout-in-230-sec%2Fm-p%2F1526934%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EBiplab%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello Team,

 

We have couple of App Service which takes more than 230 Sec. We can not use Durable function or Webjobs. how can we increase the time, as we have a task running which takes about 10 mins.

 

Thanks,

Biplab

4 Replies

Hello @Biplab Sah

Do you have several App Services or Web Apps? Can you please try to explain why you cannot use Webjobs or durable functions? It may help to understand your use case. On top of that I suggest you cross-post your question in the Apps on Azure community here: https://techcommunity.microsoft.com/t5/apps-on-azure/bd-p/AppsonAzure

Cheers
Rolf
#MCT #LearnWithRolf #TheCloud42 

@Rolf-42 Thanks.

 

So, The application runs both on Azure as well as on-premise. using a webjob or durable function will put a dependency on cloud.

I have couple of App Services. App Service 1 calls App Service 2, and if App Service 2 takes more than 230 seconds to respond, the request throws 500. I tried Async Await and 

 
It didn't help me out.
 
Thanks,
Biplab Sah

Hello @Biplab Sah

As you can see from this link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes an error 500 is an internal server error. So you need to do some debugging in the call between service 1 and service 2 like which authentication, which permission, which URL/URI etc.

And yes, going towards async is a good cloud development principle. Maybe you can also consider putting your apps into containers to reduce dependencies to cloud services.

Some source code would help to get into the details but again that is probably better asked in the developer community than in the Microsoft Learn community.

Good luck

Cheers
Rolf
#MCT #LearnWithRolf #TheCloud42  

Thanks @Rolf-42

I do understand the scenario. the same application run great on IIS. it's an issue of app service request time out, which I have narrowed down and tested.
check this: https://github.com/MicrosoftDocs/azure-docs/issues/30795
As per your suggestion, I have put the question in the other group too: https://techcommunity.microsoft.com/t5/apps-on-azure/app-service-timeout-in-230-sec/m-p/1526934

Thanks,
Biplab