cloudyr / limer

A LimeSurvey R Client
MIT License
67 stars 37 forks source link

Log in not working #54

Closed jorgesinval closed 9 months ago

jorgesinval commented 4 years ago

When I use the function get_session_key after defining the username, password, and API, I get the following error:

Error: Argument 'txt' must be a JSON string, URL or file.

Any thoughts?

SebastianHuter commented 4 years ago

i have the same issue, trying to access a LimeSurvey 4.1.15 installation. It seems like an error from the function jsonlite::toJSON within get_session_key and that it somehow doesn't get or like the lime_api URL from the options. But I couldn't really solve it yet. Any success?

jemus42 commented 4 years ago

I have not tried LimeSurvey 4.x yet, but I have experienced the given error message temporarily, sometimes over the course of one or two days. If all LimeSurvey settings are defined correctly, it may legitimately be a "just wait a bit and try again" issue if you're lucky.

(I could never figure out what caused the issue, sorry)

akuehn commented 4 years ago

Set RPC-Interface to JSON-RPC in your limesurvey global settings.

SebastianHuter commented 4 years ago

that did the trick, thank you!