You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding a new variable with this function : v <- brapirv2::brapi_post_variables( con, contextOfUse = c("MEANS"), method = list(methodDbId = methodDbId), observationVariableName = observationVariableName, trait = list(traitDbId = traitDbId) )
I got an error 400 because the body sent to the BrAPI server wasn't in the right format, with "contextOfUse": "MEANS" instead of "contextOfUse": ["MEANS"]
It works fine if "contextOfUse" contains more than one element.
I managed to fix this by adding the pattern "contextOfUse" in line 29 of brapi_POST_callBody function.
The text was updated successfully, but these errors were encountered:
I tried adding a new variable with this function :
v <- brapirv2::brapi_post_variables( con, contextOfUse = c("MEANS"), method = list(methodDbId = methodDbId), observationVariableName = observationVariableName, trait = list(traitDbId = traitDbId) )
I got an error 400 because the body sent to the BrAPI server wasn't in the right format, with
"contextOfUse": "MEANS"
instead of"contextOfUse": ["MEANS"]
It works fine if "contextOfUse" contains more than one element.
I managed to fix this by adding the pattern "contextOfUse" in line 29 of brapi_POST_callBody function.
The text was updated successfully, but these errors were encountered: