Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on File Download #225

Closed
guipedral opened this issue Jul 3, 2017 · 8 comments
Closed

Exception on File Download #225

guipedral opened this issue Jul 3, 2017 · 8 comments

Comments

@guipedral
Copy link

guipedral commented Jul 3, 2017

I can't download a file from task node. I'am getting this exeception:

Microsoft.Azure.Batch.Common.BatchException: Operation returned an invalid status code 'Forbidden' ---> Microsoft.Azure.Batch.Protocol.Models.BatchErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.Batch.Protocol.FileOperations.d__7.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.Azure.Batch.Protocol.BatchRequestBase2.<ExecuteRequestWithCancellationAsync>d__42.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.Azure.Batch.Protocol.BatchRequestBase2.d__40.MoveNext()
--- End of inner exception stack trace ---
at Microsoft.Azure.Batch.Protocol.BatchRequestBase2.<ExecuteRequestAsync>d__40.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.Azure.Batch.ProtocolLayer.<ProcessAndExecuteBatchRequest>d__841.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.Azure.Batch.ProtocolLayer.d__33.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.Azure.Batch.JobOperations.d__39.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.Azure.BatchExplorer.Models.TaskModel.d__58.MoveNext() in C:\Users\g.pedral.santos\Desktop\azure batch\azure-batch-samples-master\CSharp\BatchExplorer\Models\TaskModel.cs:line 384
--- 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.Azure.BatchExplorer.Models.TaskModel.d__56.MoveNext() in C:\Users\g.pedral.santos\Desktop\azure batch\azure-batch-samples-master\CSharp\BatchExplorer\Models\TaskModel.cs:line 356
--- 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.Azure.BatchExplorer.ViewModels.MainViewModel.d__215.MoveNext() in C:\Users\g.pedral.santos\Desktop\azure batch\azure-batch-samples-master\CSharp\BatchExplorer\ViewModels\MainViewModel.cs:line 1728
Request Information
ClientRequestId:
RequestId:6cbffd54-1fc7-48cd-a56f-4ec3a5ab9cae
HttpStatusCode:Forbidden
StatusMessage:Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

screenshot 209

@matthchr
Copy link
Contributor

matthchr commented Jul 3, 2017

Hi @guipedral - I'm looking into this.

@guipedral
Copy link
Author

If need, I can share my account name/key. Tks

@matthchr
Copy link
Contributor

matthchr commented Jul 3, 2017

I can get your account name from the RequestId in the callstack you posted above, and you shouldn't ever share your account key with anybody you don't trust.

I think I have all the information I need to diagnose the problem... I'll let you know when we know what's going on.

@guipedral
Copy link
Author

Thanks a lot!

@matthchr
Copy link
Contributor

matthchr commented Jul 5, 2017

There is a service bug which is causing this behavior for requests which contain %2F or %5D (the URL encoded forms of / and \).

We are rolling out a fix to mitigate the issue. You should hopefully see things start working again soon.

@matthchr
Copy link
Contributor

This was fixed a few days after my last comment but I forgot to respond. Closing this now as the issue is resolved.

@kjayantmenon
Copy link

This issue persists - we are running in to this one intermittently.

@bgklein
Copy link
Contributor

bgklein commented Sep 16, 2019

@kjayantmenon BatchExplorer v1 is now deprecated. You should switch to using BatchExplorer v2 (formerly BatchLabs), which is getting active funding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants