I'm trying to use firebase cloud functions to host an API which communicates with an Arango database.
I'm using arangojs to connect but I get the following errors when I try to access my database.
I tried with IP address and with a url (which points to the same IP address) and got two different results:
With IP address
With a URL
Here's the code to connect:
const db = new Database({
url: "http://XXX.XXX.XXX.XXX:YYYY"
});
db.useDatabase('MyDBName');
db.useBasicAuth("myuser", "mypassword");
Note that in the URL case, the IP address is replaced with a url...
Have you got an idea of the problem?
Thanks