sverhoeven / docker-cartodb

Dockerized CartoDB
BSD 3-Clause "New" or "Revised" License
147 stars 117 forks source link

Access to API #71

Open jvrck opened 5 years ago

jvrck commented 5 years ago

Hi,

I can log in and create datasets and do what I need in builder. But I cannot access the sql or import api.

How can you access the APIs in the container?

Kind Regards.

sverhoeven commented 5 years ago

The container is configured with subdomainless urls

The sql api is running at http://cartodb.localhost/user/{username}/api/v2/sql?api_key={api_key}&q={SQL query}

The import api is running at http://cartodb.localhost/user/{username}/api/v1/imports/?api_key={api_key}

jvrck commented 5 years ago

Hi @sverhoeven , thanks for replying.

The SQL API works great thanks.

I can access the import api endpoint in the browser now, which is more promising, but I get an error with CURL.

Trying 127.0.1.1... TCP_NODELAY set Connection failed connect to 127.0.1.1 port 80 failed: Operation timed out Failed to connect to 127.0.1.1 port 80: Operation timed out Closing connection 0 curl: (7) Failed to connect to 127.0.1.1 port 80: Operation timed out

I am following the api information here https://carto.com/developers/import-api/reference/# and trying to import a file.

ghost commented 3 years ago

Hello @sverhoeven How about accessing the Maps API?