Skip to content

Conversation

@dapregi
Copy link

@dapregi dapregi commented Feb 9, 2024

Duplicated "limit" param causes CellBase to return an HTTP ERROR 500. And because "limit" is always populated (its value is 1000 by default), every time CellBaseParams is used in a query, it fails.

Example code to replicate the error:

library(cellbaseR)
cb <- CellBaseR(host="https://ws.zettagenomics.com/cellbase/webservices/rest/", version="v5", species="hsapiens")
cbparam <- CellBaseParam(assembly = 'GRCh38')
res <- getVariant(object=cb, ids=c('1:64844827:G:A'), resource="annotation", param = cbparam)
str(res, 1)

Error returned:

Error: lexical error: invalid char in json text.
                                       <html> <head> <meta http-equiv=
                     (right here) ------^

This PR removes duplicated "limit" param from every get function (except getClinical, which was working fine).

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.

1 participant