Comments (5)
thanks for the report, I'm looking into it
no, this is not an intended usage. --port
should be respected if provided
from cabby.
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 itDuring 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.
Thanks for letting us know @pea-are. We'll look into it!
from cabby.
+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.
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)
- cabby script running inside Centos 7 Docker container HOT 1
- Pushing multiple file in one command HOT 1
- ERROR: __init__() got an unexpected keyword argument 'recover' HOT 3
- Allow HTTPS authentication with certificates for taxii-proxy HOT 2
- taxii-poll: error: unrecognized "--key" argument HOT 1
- TAXII 2.0? HOT 7
- Cabby CLI push command fails when called for PDF file HOT 4
- repr's for objects
- Dockerfile missing '/' HOT 1
- Use responses instead of httpretty
- Polling Fails HOT 4
- Http 1.1 - Unknown protocol HOT 7
- Client subscribe does not utilize inbox service HOT 4
- recursive polling with fulfillment_client HOT 7
- Pulling STIX 2.0 data from Anomali Limo HOT 1
- Fix failing build
- output from taxii-poll with -l greater than 1 can't be used directly in taxii-push
- Querying for a specific object
- New release for updates
- Cannot Authenticate Server HOT 2
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 cabby.