Giter VIP home page Giter VIP logo

Comments (5)

traut avatar traut commented on August 26, 2024

thanks for the report, I'm looking into it

no, this is not an intended usage. --port should be respected if provided

from cabby.

pea-are avatar pea-are commented on August 26, 2024

Same issue appears to occur when performing the create_client command using cabby 0.1.12

client = create_client(host='127.0.0.1', port=9000, discovery_path=config.get('taxii', 'discovery_path'))

Traceback (most recent call last):
File "C:\Python35\lib\site-packages\requests\packages\urllib3\connection.py", line 142, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "C:\Python35\lib\site-packages\requests\packages\urllib3\util\connection.py", line 98, in create_connection
raise err
File "C:\Python35\lib\site-packages\requests\packages\urllib3\util\connection.py", line 88, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python35\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 595, in urlopen
chunked=chunked)
File "C:\Python35\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 363, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Python35\lib\http\client.py", line 1106, in request
self._send_request(method, url, body, headers)
File "C:\Python35\lib\http\client.py", line 1151, in _send_request
self.endheaders(body)
File "C:\Python35\lib\http\client.py", line 1102, in endheaders
self._send_output(message_body)
File "C:\Python35\lib\http\client.py", line 934, in _send_output
self.send(msg)
File "C:\Python35\lib\http\client.py", line 877, in send
self.connect()
File "C:\Python35\lib\site-packages\requests\packages\urllib3\connection.py", line 167, in connect
conn = self._new_conn()
File "C:\Python35\lib\site-packages\requests\packages\urllib3\connection.py", line 151, in _new_conn
self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x0000000004D98550>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python35\lib\site-packages\requests\adapters.py", line 423, in send
timeout=timeout
File "C:\Python35\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 640, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Python35\lib\site-packages\requests\packages\urllib3\util\retry.py", line 287, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /taxii-data (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x0000000004D98550>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Python Projects/Pure-AlienVault-OTX/otx-taxii.py", line 85, in
sendTAXII(True)
File "C:/Python Projects/Pure-AlienVault-OTX/otx-taxii.py", line 57, in sendTAXII
uri=config.get('taxii', 'uri'))
File "C:\Python35\lib\site-packages\cabby\client11.py", line 332, in push
service_type=const.SVC_INBOX)
File "C:\Python35\lib\site-packages\cabby\abstract.py", line 141, in _execute_request
*_self.auth_details)
File "C:\Python35\lib\site-packages\cabby\dispatcher.py", line 126, in send_taxii_request
url, data=request_body, headers=headers, stream=True)
File "C:\Python35\lib\site-packages\requests\sessions.py", line 522, in post
return self.request('POST', url, data=data, json=json, *_kwargs)
File "C:\Python35\lib\site-packages\requests\sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "C:\Python35\lib\site-packages\requests\sessions.py", line 596, in send
r = adapter.send(request, *_kwargs)
File "C:\Python35\lib\site-packages\requests\adapters.py", line 487, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /taxii-data (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x0000000004D98550>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

from cabby.

aukjan avatar aukjan commented on August 26, 2024

Thanks for letting us know @pea-are. We'll look into it!

from cabby.

grleblanc avatar grleblanc commented on August 26, 2024

+1 to this. I was having an issue that I thought was my network. Ran a tcpdump and found out that the port option is not used.

from cabby.

traut avatar traut commented on August 26, 2024

I'm closing this issue since it should be fixed in the last 0.1.13 version, released today.

Sorry for the delay, guys

from cabby.

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.