Comments (3)
Hi @c0d33p! Thanks for submitting this issue.
I am not able to reproduce the error running martialblog/limesurvey on port 8001.
# script.py
import logging
import citric
formatter = logging.Formatter("{asctime} {levelname} {message}", style="{")
handler = logging.StreamHandler()
handler.setFormatter(formatter)
logger = logging.getLogger("citric")
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)
LS_URL = "http://127.0.0.1:8001/index.php/admin/remotecontrol"
print(citric.__version__)
with citric.Client(LS_URL, "iamadmin", "secret") as client:
users = client.list_users()
print(users[0]["users_name"])
$ python script.py
0.0.9
2022-02-09 19:03:51,028 INFO Invoked RPC method get_session_key with ID 276601
2022-02-09 19:03:51,320 INFO Invoked RPC method list_users with ID 213430
iamadmin
2022-02-09 19:03:51,618 INFO Invoked RPC method release_session_key with ID 41522
Can you enable "Publish API on /admin/remotecontrol"
and check the output of
curl http://127.0.0.1:8082/index.php/admin/remotecontrol
It might also be worth looking at your LimeSurvey container logs:
$ docker container logs --tail 10 citric_limesurvey_1
172.24.0.1 - - [10/Feb/2022:01:01:53 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 449 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:02:35 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 791 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:02:36 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 806 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:02:36 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 449 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:02:48 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 791 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:02:48 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 806 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:02:48 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 449 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:03:50 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 791 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:03:51 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 807 "-" "citric-client"
172.24.0.1 - - [10/Feb/2022:01:03:51 +0000] "POST /index.php/admin/remotecontrol HTTP/1.1" 200 448 "-" "citric-client"
from citric.
The issue was related to the martialblog/limesurvey
LIMESURVEY_DEBUG=2
option.
After starting new docker-compose without above line in docker-compose.yml everything runs fine.
Thank you and sorry for trouble...
from citric.
@c0d33p thank you for sharing your findings and again for logging the issue in the first place!
I'm glad you were able to solve this by changing a container variable 😄
from citric.
Related Issues (20)
- Document usage in R with `reticulate`
- Add links to how-to examples in README
- [Bug]: SSL certificate verification failure HOT 1
- [Bug]: Participant attributes "invited" and "reminded" don't seem to be included HOT 3
- Use calendar versioning? HOT 1
- [Bug]: set_question_properties returns "No valid data" on nested attributes HOT 3
- Feature: Support for survey and question object manipulation HOT 1
- Feature: Add name and description parameters of `import_group`
- [Bug]: Use boolean keyword-only arguments for
- Support the new REST API
- Refactor some `return` statements HOT 1
- [Bug]: Parameter `attributes` of `activate_tokens` is not passed to the RPC call
- [Bug]: <using citric with google colab HOT 7
- [Bug]: Improve error message when RPC response is not valid JSON
- [Bug]: LimeSurveyApiError: CDbCommand cannot execute SQL statement, String data, right truncated: 1406 Data too long for column HOT 7
- Add MySQL integration tests HOT 1
- Deprecation: Remove the `Session._header` attribute
- Publish documentation to Dash User-Contributed docsets
- [Bug]: edit button is not working HOT 2
- Integration tests failing on `import_survey`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citric.