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

Remove unwanted (?!) keys in output jbrowse config #470

Closed
wants to merge 1 commit into from

Conversation

dariober
Copy link
Contributor

Occasionally jbrowse get-config outputs _id and __v keys:

gitpod /workspace/apollo3-annotation/jbrowse_data (create_script) $ apollo jbrowse get-config
{
  "configuration": {
    "theme": {
      "palette": {
....
  },
  "_id": {},
  "__v": 0
}

Which result in:

 apollo jbrowse set-config config.json
    Error: Failed to add JBrowse configuration — 422 Unprocessable Entity ({"message":"ValidationError: _id: Cast to ObjectId failed for value \"{}\" (type Object) at path \"_id\" because of
    \"BSONTypeError\"","error":"Unprocessable Entity","statusCode":422})

Occasionally `jbrowse get-config` outputs `_id` and `__v` keys:

```
gitpod /workspace/apollo3-annotation/jbrowse_data (create_script) $ apollo jbrowse get-config
{
  "configuration": {
    "theme": {
      "palette": {
....
  },
  "_id": {},
  "__v": 0
}
```

Which result in:

```
 apollo jbrowse set-config config.json
    Error: Failed to add JBrowse configuration — 422 Unprocessable Entity ({"message":"ValidationError: _id: Cast to ObjectId failed for value \"{}\" (type Object) at path \"_id\" because of
    \"BSONTypeError\"","error":"Unprocessable Entity","statusCode":422})
```
@garrettjstevens
Copy link
Contributor

Closed in favor of #471

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

Successfully merging this pull request may close these issues.

2 participants