linkedpipes / etl

LinkedPipes ETL is an RDF based, lightweight ETL tool
https://etl.linkedpipes.com
Other
147 stars 30 forks source link

Cannot trigger pipeline execution from a local instance #953

Closed viktor-ribchev closed 2 years ago

viktor-ribchev commented 2 years ago

Hi,

I have deployed the ETL locally via the docker-compose you've provided and created a simple pipeline. The config is:

LP_ETL_DOMAIN=http://localhost:7777
LP_ETL_PORT=7777
LP_VERSION=main

When I try to trigger the pipeline via cURL as shown here

curl -i -X POST http://localhost:7777/resources/executions?pipeline=http://localhost:7777/resources/pipelines/1667194442821

I get:

HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Security-Policy: default-src 'none'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 160
Date: Mon, 31 Oct 2022 05:38:44 GMT
Connection: keep-alive
Keep-Alive: timeout=5

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /resources/executions</pre>
</body>
</html>

Can you tell me what I'm missing?

jakubklimek commented 2 years ago

Hello, if you are using the develop branch, the API path has changed (not documented yet, sorry). Try http://localhost:7777/api/v1/executions

viktor-ribchev commented 2 years ago

@jakubklimek Thanks for the fast response, I'm using the main branch, but the example you gave works :) Thanks!