-
Notifications
You must be signed in to change notification settings - Fork 256
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
Error Serializing an R object in POST request #661
Comments
Parser are not all available by default, only a select few. Parser rds has to be specified to be used. See ?parser_form
Here I use another do_something <- function(df){
message(class(df))
df %>% head
}
#* @post /api
#* @parser rds
#* @serializer rds
function(req) {
do_something(req$argsPostBody)
} |
Thank you very much @meztez, using parser resolves my problem. I post the complet solution, hope this help others. Server Side :
Client Side :
|
Hi,
I try to create an API using Plumber 0.4.7.9000, this API will be consumed by an other R process.
The objectif is to send an R object (RDS, DataFrame, List) with a POST request and get a Transformation of this Object in response.
I got this errors but i don't know what i'm doing wrong ?!
Server Side :
Client Side :
Environment Info :
Is there an other way to do this whitout converting my R objet to a JSON and without writing the response to disk (ie as done by @meztez here) ?
Thank you for your help!
The text was updated successfully, but these errors were encountered: