GithubHelp home page GithubHelp logo

Comments (3)

edgarrmondragon avatar edgarrmondragon commented on September 25, 2024

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"

Screen Shot 2022-02-09 at 18 58 56

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.

c0d33p avatar c0d33p commented on September 25, 2024

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.

edgarrmondragon avatar edgarrmondragon commented on September 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.