Coder Social home page Coder Social logo

Comments (10)

lifehackjim avatar lifehackjim commented on July 30, 2024

Nevermind - just read the subject. Is port 444 open on your firewall for your tanium server? Port 444 is necessary for pytan to access /info (and /info.json) in 6.2

from pytan.

lespea avatar lespea commented on July 30, 2024

Yeah the connection is made to 444 just fine and everything works it's just returning that weird string instead of json. I hard-coded the "server version" to 6.2 so get_server_info is never called and everything works fine (question fires and returns the expected results).

from pytan.

lifehackjim avatar lifehackjim commented on July 30, 2024

That's.. odd. I've never seen that. Though that string aligns with what would be a session-id, possibly. I'm about to check in a change to pytan.sessions.Sessions.get_server_info() that makes that function a little more error proof. Mind trying with the develop branch?

from pytan.

lifehackjim avatar lifehackjim commented on July 30, 2024

Point of note, http_post is SUPPOSED to return a string.

get_server_info() is supposed to parse that string as json into a python dict here: https://github.com/tanium/pytan/blob/2.0.3/lib/pytan/sessions.py#L389

from pytan.

lespea avatar lespea commented on July 30, 2024

Oh right when I said string I just meant it wasn't a json structure (ie it wouldn't be a dictionary which was expected). I went home for the day but I can checkout the dev branch (just master or is there another one?) and see what happens.

from pytan.

lifehackjim avatar lifehackjim commented on July 30, 2024

The develop branch is here: https://github.com/tanium/pytan/tree/develop

It contains the next version of PyTan (which is likely to be 2.1.0, although it's currently marked as 2.0.4).

I check in all my changes to develop and once I've fully tested them all, I push to master and do version increments/etc.

from pytan.

lespea avatar lespea commented on July 30, 2024

Okay cool I'll give it a shot tomorrow and let you know how it goes. Thanks!

from pytan.

lespea avatar lespea commented on July 30, 2024

Wow that's a lot of documentation in that branch; nice job!

Anyway got this exception now:

2015-08-28 15:19:28,949 WARNING  pytan.sessions.Session: Unable to find Version key in Settings: {}
2015-08-28 15:19:28,949 WARNING  pytan.sessions.Session: Unable to find Version key in Settings: {}
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "../lib/pytan/handler.py", line 194, in get_server_version
    self.server_version_dict = self._parse_versioning()
  File "../lib/pytan/handler.py", line 2320, in _parse_versioning
    raise pytan.exceptions.VersionParseError(m(self.server_version))
VersionParseError: Unable to parse major, minor, revision, and build from server version string: Unable to determine

info_dict is what you're setting in the json.loads exception body; with a value equal to the string I posted above.

from pytan.

lifehackjim avatar lifehackjim commented on July 30, 2024

Are you able to webex with me? let's take this direct to email, something is going on that I can't see through what you've provided me.

[email protected]

from pytan.

lespea avatar lespea commented on July 30, 2024

Fixed in 2.1.0. Thanks!

from pytan.

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.