- Posts: 68
- Thank you received: 7
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
body.json = list(method = "get_session_key", id = 1, params = list(username = getOption('lime_username'), password = getOption('lime_password'))) r <- POST(getOption('lime_api'), content_type_json(), body = jsonlite::toJSON(body.json, auto_unbox = TRUE)) xml <- content(r, encoding="utf-8") rvest::html_text(xml)
500: Internal Server Error call_user_func_array(): Argument #1 ($callback) must be a valid callback, second array member is not a valid method
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
btw content is httr::content()
Please Log in to join the conversation.
Seems to be a PHP issue.My hypothesis is - RPC does not return JSON but an HTML error page that limer has no idea about as it expects only a JSON string
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
devtools::install_github("Jan-E/limer", force = TRUE)
Please Log in to join the conversation.
Please Log in to join the conversation.
If the updated version force to update external tool : we need to reverse and do it in 7.X version according to semverSee github.com/cloudyr/limer/pull/66 and github.com/Jan-E/limer
Please Log in to join the conversation.
Please Log in to join the conversation.
Make sense : sure at 100% !The update seemed to make a sense though, non standard response was turned into a standard one. In addition the fix in Limer (R) is told to be backwards compatible, so no issue here. However there are tools (languages) mentioned in the manual www.limesurvey.org/manual/RemoteControl_...I#Example_and_helper
Yes, but it still an API semver version broker.If there could be a quick check that those function after the update, that would be good, and also if a paragraph could mention this change in the same page, that might help.
Please Log in to join the conversation.
Please Log in to join the conversation.