Git Product home page Git Product logo

Comments (13)

arthurzenika avatar arthurzenika commented on August 10, 2024
        logger.setLevel(max(logging.ERROR - (self.options.verbose * 10), 1))

seem a bit weird. Could we adopt the same convention as for salt with --log-level all (all|debug|info|warn) etc.

from pepper.

whiteinge avatar whiteinge commented on August 10, 2024

I can't reproduce this. What version are you on? What is the full command you're running? What is the expected vs. actual output?

% pepper --debug-http -u http://localhost:8000 '*' test.ping
send: 'POST /login HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 63\r\nConnection: close\r\nAccept: application/json\r\nUser-Agent: Python-urllib/2.7\r\nHost: localhost:8000\r\nX-Requested-With: XMLHttpRequest\r\nContent-Type: application/json\r\n\r\n{"username": "saltdev", "password": "saltdev", "eauth": "auto"}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 198
header: Access-Control-Expose-Headers: GET, POST
header: Vary: Accept-Encoding
header: Server: CherryPy/3.2.4
header: Allow: GET, HEAD, POST
header: Access-Control-Allow-Credentials: true
header: Date: Wed, 24 Jun 2015 19:30:14 GMT
header: Access-Control-Allow-Origin: *
header: X-Auth-Token: 0da8ccc7a05de1389b50364d762f7c96fa982365
header: Content-Type: application/json
header: Set-Cookie: session_id=0da8ccc7a05de1389b50364d762f7c96fa982365; expires=Thu, 25 Jun 2015 05:30:14 GMT; Path=/
header: Connection: close
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 80\r\nConnection: close\r\nAccept: application/json\r\nX-Auth-Token: 0da8ccc7a05de1389b50364d762f7c96fa982365\r\nHost: localhost:8000\r\nX-Requested-With: XMLHttpRequest\r\nUser-Agent: Python-urllib/2.7\r\nContent-Type: application/json\r\n\r\n[{"fun": "test.ping", "client": "local_async", "expr_form": "glob", "tgt": "*"}]'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 107
header: Access-Control-Expose-Headers: GET, POST
header: Access-Control-Allow-Credentials: true
header: Vary: Accept-Encoding
header: Server: CherryPy/3.2.4
header: Allow: GET, HEAD, POST
header: Cache-Control: private
header: Date: Wed, 24 Jun 2015 19:30:14 GMT
header: Access-Control-Allow-Origin: *
header: Content-Type: application/json
header: Set-Cookie: session_id=0da8ccc7a05de1389b50364d762f7c96fa982365; expires=Thu, 25 Jun 2015 05:30:14 GMT; Path=/
header: Connection: close
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 79\r\nConnection: close\r\nAccept: application/json\r\nX-Auth-Token: 0da8ccc7a05de1389b50364d762f7c96fa982365\r\nHost: localhost:8000\r\nX-Requested-With: XMLHttpRequest\r\nUser-Agent: Python-urllib/2.7\r\nContent-Type: application/json\r\n\r\n[{"fun": "jobs.lookup_jid", "jid": "20150624133014974350", "client": "runner"}]'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Length: 29
header: Access-Control-Expose-Headers: GET, POST
header: Access-Control-Allow-Credentials: true
header: Vary: Accept-Encoding
header: Server: CherryPy/3.2.4
header: Allow: GET, HEAD, POST
header: Cache-Control: private
header: Date: Wed, 24 Jun 2015 19:30:18 GMT
header: Access-Control-Allow-Origin: *
header: Content-Type: application/json
header: Set-Cookie: session_id=0da8ccc7a05de1389b50364d762f7c96fa982365; expires=Thu, 25 Jun 2015 05:30:18 GMT; Path=/
header: Connection: close
{
    "jerry": true
}

from pepper.

arthurzenika avatar arthurzenika commented on August 10, 2024
$ pepper --version
0.2.0.dev37

I don't have any of the header/send/reply information. Looks nice, I hope we can get it work.

from pepper.

whiteinge avatar whiteinge commented on August 10, 2024

That version number looks odd. Related to #39 I'll bet.

from pepper.

rgeyer avatar rgeyer commented on August 10, 2024

I am experiencing the same issue. Using v0.4.1. I get the output of the command, but no debug/http data.

root@53ac749c6d63:/# pepper --version
0.4.1
root@53ac749c6d63:/# pepper -H '*' test.ping
{
    "return": [
        {
            "mongodb-backup-generic-test-i-00a2e54a978f64d21": true,
            "mongodb-generic-test-i-001c928a68509fae0": true,
            "mongodb-generic-test-i-03ca19e8101889f54": true,
            "salt-master": true
        }
    ]
}
root@53ac749c6d63:/# pepper -H '*' test.ping 2>&1
{
    "return": [
        {
            "mongodb-backup-generic-test-i-00a2e54a978f64d21": true,
            "mongodb-generic-test-i-001c928a68509fae0": true,
            "mongodb-generic-test-i-03ca19e8101889f54": true,
            "salt-master": true
        }
    ]
}

from pepper.

whiteinge avatar whiteinge commented on August 10, 2024

I believe this was fixed on the develop branch. Please try on the newly cut 0.5.0 release.

from pepper.

ezh avatar ezh commented on August 10, 2024

Maybe it is related to #138

from pepper.

gtmanfred avatar gtmanfred commented on August 10, 2024

@rgeyer @arthurlogilab can yall check if the new version has fixed this issue?

Thanks,
Daniel

from pepper.

rgeyer avatar rgeyer commented on August 10, 2024

Holy resurrected issue batman!

Sadly, I no longer have access to a working saltstack so I can't confirm.

from pepper.

gtmanfred avatar gtmanfred commented on August 10, 2024

Ok, thanks for responding!

from pepper.

kyrias avatar kyrias commented on August 10, 2024

@gtmanfred I just tried it with pepper 0.7.1 from PyPI, and it doesn't work.

from pepper.

kyrias avatar kyrias commented on August 10, 2024

And more specifically, it's running under Python 3.6.

from pepper.

gtmanfred avatar gtmanfred commented on August 10, 2024

sounds good, i will take a closer look when I have time.

from pepper.

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.