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

Unable to import multiple external notebooks if one of the Notebook is invalid #2209

Closed
prateek032 opened this issue Jul 28, 2016 · 8 comments
Assignees
Labels
Milestone

Comments

@prateek032
Copy link
Contributor

While importing multiple notebooks if one of the notebook is encrypted then it fails to import the remaining notebooks.

@gordonwoodhull gordonwoodhull added this to the 1.6.1 milestone Jul 28, 2016
@gordonwoodhull gordonwoodhull self-assigned this Jul 28, 2016
@gordonwoodhull
Copy link
Contributor

Only the one notebook should fail.

@gordonwoodhull gordonwoodhull modified the milestones: 1.6.1, 1.6.2 Aug 15, 2016
@shaneporter
Copy link
Collaborator

hi @prateek032 - how do I encrypt a notebook? Thanks.

@prateek032
Copy link
Contributor Author

@shaneporter , Assign that Notebook to any Group/ make it as Private Notebook

@shaneporter
Copy link
Collaborator

Thanks @prateek032!

@shaneporter
Copy link
Collaborator

The error is occurring on the R side of things.

Error in rcloud.decrypt(ec, key) : 
  checksum mismatch - probably wrong key or ciper
Error: port_notebooks: Error in rcloud.decrypt(ec, key) :
checksum mismatch - probably wrong key or ciper
R trace:
stop("checksum mismatch - probably wrong key or ciper")
rcloud.decrypt(ec, key)
.gist.binary.process.incoming(res$content)
rcloud.augment.notebook(res)
rcloud.create.notebook(newgist, FALSE)
(function (notebook)
{
getg <- get.gist(notebook, ctx = foreign.ctx)
if (getg$ok) {
gist <- getg$content
newgist <- list(description = paste(prefix, gist$description,
sep = ""), files = gist$files)
rcloud.create.notebook(newgist, FALSE)
}
else getg
})(dots[[1L]][[1L]])
mapply(FUN = f, ..., SIMPLIFY = FALSE)
Map(function(notebook) {
getg <- get.gist(notebook, ctx = foreign.ctx)
if (getg$ok) {
gist <- getg$content
newgist <- list(description = paste(prefix, gist$description,
sep = ""), files = gist$files)
rcloud.create.notebook(newgist, FALSE)
}
else getg
}, books)
fun(...)
at success (http://127.0.0.1:8080/js/rcloud_bundle.js:142:23)
From previous event:
at Object.port_notebooksAsync (http://127.0.0.1:8080/js/rcloud_bundle.js:148:54)
at Object.rcloud.port_notebooks (http://127.0.0.1:8080/js/rcloud_bundle.js:596:33)
at HTMLSpanElement.do_import (http://127.0.0.1:8080/js/rcloud_bundle.js:7932:36)
at HTMLSpanElement.dispatch (http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4409:9)
at HTMLSpanElement.elemData.handle (http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4095:28)

@shaneporter
Copy link
Collaborator

Seems that the R code for the import is here.

@shaneporter
Copy link
Collaborator

@gordonwoodhull - can you please take a look at this? Thanks.

@gordonwoodhull
Copy link
Contributor

Sure, taking this.

@gordonwoodhull gordonwoodhull modified the milestones: 1.6.2, 1.7 Oct 28, 2016
@gordonwoodhull gordonwoodhull modified the milestones: 1.7, 1.8 Nov 28, 2016
@gordonwoodhull gordonwoodhull changed the title Unable to import multiple external notebooks if one of the Notebook is encrypted Unable to import multiple external notebooks if one of the Notebook is invalid May 1, 2017
useless5771 added a commit to MangoTheCat/rcloud that referenced this issue May 5, 2017
useless5771 added a commit to MangoTheCat/rcloud that referenced this issue May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants