Comments (3)
I'm facing the same problem; my setup has HTTP at :8080 and BOLT at :8081. I cannot use the default ports.
$ cycli --host example.com -P 8080 -u user -p password
______ __ __ ______ __ __
/\ ___\ /\ \_\ \ /\ ___\ /\ \ /\ \
\ \ \____ \ \____ \ \ \ \____ \ \ \____ \ \ \
\ \_____\ \/\_____\ \ \_____\ \ \_____\ \ \_\
\/_____/ \/_____/ \/_____/ \/_____/ \/_/
Cycli version: 0.7.6
Neo4j version: 3.4.0
Bug reports: https://github.com/nicolewhite/cycli/issues
> MATCH (:USER) RETURN COUNT(*);
[Errno 110] Connection timed out
It appears cycli is able to get some information from the database though, since autocomplete works and schema
output is correct.
from cycli.
Have you tried passing the --ssl
flag?
from cycli.
Hello @nicolewhite, the issue still persists using the --ssl
flag.
Here are some examples of connection issues against Neo4j 3.1.4:
Cycli version:
$ cycli -v
cycli 0.7.6
Passing the port number for Bolt and the ssl flag:
$ cycli -h db-ba7d0ffd9ejjgigs7w22.graphenedb.com -P 24786 -u testuser -p b.RM3HBvS5UQK6.aNjGi2ejfw2NOfgp --ssl
Traceback (most recent call last):
File "/usr/local/bin/cycli", line 11, in <module>
sys.exit(run())
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/cycli/main.py", line 275, in run
cycli = Cycli(host, port, username, password, logfile, filename, ssl, read_only, timeout)
File "/usr/local/lib/python2.7/site-packages/cycli/main.py", line 37, in __init__
self.neo4j = Neo4j(host, port, username, password, ssl, timeout)
File "/usr/local/lib/python2.7/site-packages/cycli/driver.py", line 50, in __init__
self.graph = Graph(uri, user=username, password=password, bolt=bolt, secure=ssl)
File "/usr/local/lib/python2.7/site-packages/py2neo/database/__init__.py", line 327, in __new__
use_bolt = version_tuple(inst.__remote__.get().content["neo4j_version"]) >= (3,)
TypeError: string indices must be integers, not str
Passing the port number for HTTPS and the ssl flag:
$ cycli -h db-ba7d0ffd9ejjgigs7w22.graphenedb.com -P 24780 -u testuser -p b.RM3HBvS5UQK6.aNjGi2ejfw2NOfgp --ssl
Traceback (most recent call last):
File "/usr/local/bin/cycli", line 11, in <module>
sys.exit(run())
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/cycli/main.py", line 275, in run
cycli = Cycli(host, port, username, password, logfile, filename, ssl, read_only, timeout)
File "/usr/local/lib/python2.7/site-packages/cycli/main.py", line 37, in __init__
self.neo4j = Neo4j(host, port, username, password, ssl, timeout)
File "/usr/local/lib/python2.7/site-packages/cycli/driver.py", line 50, in __init__
self.graph = Graph(uri, user=username, password=password, bolt=bolt, secure=ssl)
File "/usr/local/lib/python2.7/site-packages/py2neo/database/__init__.py", line 327, in __new__
use_bolt = version_tuple(inst.__remote__.get().content["neo4j_version"]) >= (3,)
File "/usr/local/lib/python2.7/site-packages/py2neo/database/http.py", line 157, in get
raise Unauthorized(self.uri.string)
py2neo.database.status.Unauthorized: https://db-ba7d0ffd9ejjgigs7w22.graphenedb.com:24780/db/data/
Note: this database has been deleted any further connection attempt using this set or another set of credentials will fail.
from cycli.
Related Issues (20)
- Highlight cycli-specific keywords with their own color
- Autocomplete is wrong when drawing a pattern inside the SIZE function
- A collection of integers is converted to a list of strings bc of pretty_table
- Can't pip install cycli on python 2.7 HOT 1
- Properties are not autocompleted inside functions
- Trying to run periodic commit results in an error HOT 2
- [SEV 1] My coffee is cold and the microwave smells weird [SEV 1]
- Can connect and autosuggest node labels, but can't fire query HOT 2
- ASCII can't decode error with UTF-8 data in Neo4j HOT 3
- control-d does not exit
- Semicolon in quoted property seems to be incorrectly interpreted as end of cypher statement HOT 7
- Using -f is opening the file in binary mode HOT 8
- connecting to graphenedb
- Exceptions when using cycli with no authorization required HOT 1
- Feature request: turn off echo HOT 1
- Cypher interpretation of commented lines ending in semicolons
- Bump pypi version
- Support Offer
- do not pin packages in setup.py
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 cycli.