Can't create connection to Arango server
See original GitHub issueArango 3 and Python 2.7 on Ubuntu (localhost). Maybe I’m missing something, but I can’t even execute your code examples without throwing this error.
>>> from pyArango.connection import *
>>> conn = Connection()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyArango/connection.py", line 63, in __init__
self.reload()
File "pyArango/connection.py", line 77, in reload
data = r.json()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 812, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
cannot create connection to server '' at endpoint 'tcp://X.X.X.X ...
my environment running ArangoDB ArangoDB 3.3.4 architecture: 64bit build-date: ... cannot create connection to server '' at endpoint ...
Read more >Troubleshooting ArangoDB Server
If the ArangoDB server does not start or if you cannot connect to it using arangosh or other clients, you can try to...
Read more >c# - Cannot connect to ArangoDB Server - Stack Overflow
I Have a Simple form where i want to connect to any database present in arangoDB interface. I am using this code on...
Read more >Can't use arangorestore with SSL endpoint - Google Groups
arangodump and arangorestore use the same underlying connection code, so I am wondering whether creating the dump over SSL with arangodump has worked....
Read more >How to Install and Use ArangoDB Database on Windows
Learn How to setup ArangoDB database on Windows. How do I start ArangoDB server on Windows. How do I set up ArangoDB. How...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
Yes in 3.0 authentication is now active by default (which was not the case in previous versions). It means that for all the functionalities to work properly you have to either disable authentication explicitly or give it the username and password of a user that has access to _system, so it would be:
conn = Connection(username=xxx, password=xxx)
I am currently working on user management and when I am done you should be able to also manage user rights to different databases.
Unfortunately the server that is hosting the doc is experiencing some problems and I am unable to update it for the moment, but most of the doc is embedded in the code. If you want, you can also generate the full doc by installing sphynx along with the read the docs plugin and then typing
make clean;make html
inside the doc folder.Cheers,
No problem, thanks!