Azure-Samples / Cognitive-Speech-STT-ServiceLibrary

Service SDK - C# Samples, documentation for service to service speech to text
22 stars 26 forks source link

408 timeouts from Azure batch #10

Closed rrrodzilla closed 6 years ago

rrrodzilla commented 6 years ago

Hi,

Really hope someone has an answer for this. Our code is in a console app, (it's pretty much the code in this sample) that transcribes a single file and receives responses and then writes the responses to a text file. Works great locally on our machines.

However, when we add that console app as a resource to a node on Azure batch and spin up multiple nodes (or even a single one) it makes the initial transcribe request and then it sits and times out with a request 408 timeout error.

The nodes are vm images of Windows Server 2008R2 and I've verified the requisite ports are open as we are able to call other services.

Please tell me there's a setting or something we need to make in order to make this work.

Best Regards,

Roland

amrmahdi commented 6 years ago

Can you paste the stack trace ?

rrrodzilla commented 6 years ago

Stack trace below, as mentioned, this code executes just fine when run locally:

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (408) Request Timeout. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bing.Messaging.WebSocketFactory.d12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bing.Messaging.RxTx.d27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bing.Messaging.MessagingComponentFactory.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bing.Speech.SpeechClient.AudioConnection.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Bing.Speech.SpeechClient.AudioConnection.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bing.Speech.SpeechClient.d20.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bing.Speech.SpeechClient.d16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UCI.DirtyBlobRename.TranscribeBlobCommand.d19.MoveNext() in C:\Users\RolandRodriguez\source\repos\UCI.DirtyBlobRename\UCI.DirtyBlobRename\TranscribeBlobCommand.cs:line 248 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at UCI.DirtyBlobRename.TranscribeBlobCommand.Run(String[] remainingArguments) in C:\Users\RolandRodriguez\source\repos\UCI.DirtyBlobRename\UCI.DirtyBlobRename\TranscribeBlobCommand.cs:line 132 at ManyConsole.ConsoleCommandDispatcher.DispatchCommand(IEnumerable`1 commands, String[] arguments, TextWriter consoleOut, Boolean skipExeInExpectedUsage) in c:\code\ManyConsole\ManyConsole\ConsoleCommandDispatcher.cs:line 82 at UCI.DirtyBlobRename.Program.Main(String[] args) in C:\Users\RolandRodriguez\source\repos\UCI.DirtyBlobRename\UCI.DirtyBlobRename\Program.cs:line 14

amrmahdi commented 6 years ago

The .NET ClientWebsocket implementation was not yet supported on Windows Server 2008. Upgrading your OS version should resolve the issue. Support was added in Win Server 2012.