docker-cartodb icon indicating copy to clipboard operation
docker-cartodb copied to clipboard

Access to API

Open jvrck opened this issue 7 years ago • 3 comments

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.

jvrck avatar Apr 03 '19 01:04 jvrck

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}

sverhoeven avatar Apr 15 '19 12:04 sverhoeven

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.

jvrck avatar Apr 15 '19 19:04 jvrck

Hello @sverhoeven How about accessing the Maps API?

ghost avatar May 20 '21 15:05 ghost