Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
handle addjob error 403 (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfengms authored Apr 16, 2018
1 parent a05f7a0 commit 79503a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/doAzureParallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,14 @@ setHttpTraffic <- function(value = FALSE) {
if (response$status_code == 201) {
break
}
else if (response$status_code == 403) {
stop(
paste(
"Error in creating job: Server failed to authenticate the request.",
"Make sure your batch account credential is set correctly."
)
)
}
else {
jobContent <- httr::content(response, content = "parsed")

Expand Down

0 comments on commit 79503a7

Please sign in to comment.