marquez icon indicating copy to clipboard operation
marquez copied to clipboard

The endpoint /api/v1/lineage returns "403 Forbidden" response

Open pvij opened this issue 5 months ago • 5 comments

Hello, I am trying to send an OpenLineage event to Marquez using the "Getting Started" guide here: https://openlineage.io/getting-started/.

When I try to send the following request to the endpoint /api/v1/lineage: -

curl -X POST http://localhost:5000/api/v1/lineage \
  -i -H 'Content-Type: application/json' \
  -d '{
        "eventType": "START",
        "eventTime": "2020-12-28T19:52:00.001+10:00",
        "run": {
          "runId": "0176a8c2-fe01-7439-87e6-56a1a1b4029f"
        },
        "job": {
          "namespace": "my-namespace",
          "name": "my-job"
        },
        "inputs": [{
          "namespace": "my-namespace",
          "name": "my-input"
        }],  
        "producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client",
        "schemaURL": "https://openlineage.io/spec/1-0-5/OpenLineage.json#/definitions/RunEvent"
      }'

I get the following error: -

HTTP/1.1 403 Forbidden
Content-Length: 0
Server: AirTunes/860.7.1
X-Apple-ProcessingTime: 1
X-Apple-RequestReceivedTimestamp: 661472885

Am I missing something here? As per README.md,

Note: By default, the HTTP API does not require any form of authentication or authorization.

Could anyone please help me out here?

Thanks

pvij avatar Jul 22 '25 15:07 pvij

Thanks for opening your first issue in the Marquez project! Please be sure to follow the issue template!

boring-cyborg[bot] avatar Jul 22 '25 15:07 boring-cyborg[bot]

Where can I find the issue template?

pvij avatar Jul 23 '25 15:07 pvij

This is the same issue I'm having, the "getting started" seems to miss some key steps for new users. From what I can gather, in order to create a job, the namespace must exist - but the "getting started" neither mentions this, nor uses the namespace that's created by the sample (food_delivery) - instead it uses "my-namespace".

I also get the impression there's some auth requirement as I also get a forbidden but there's no mention of how to setup auth in the getting started. And the Readme has a link to quickstart (http://marquezproject.ai/quickstart.html) which is broken

waterworthd-cim avatar Aug 18 '25 02:08 waterworthd-cim

@pvij - this issue is on macos AirTunes (AirPlay) uses port 5000, you need to start marquez on a different port, i.e.

./up.sh --api-port 8000 then use 8000 (or port of your choice) rather than 5000 when invoking endpoints.

waterworthd-cim avatar Aug 19 '25 01:08 waterworthd-cim

@waterworthd-cim Thanks a ton for replying! Let me try it out and get back to you.

pvij avatar Aug 19 '25 05:08 pvij