AbsaOSS / spline

Data Lineage Tracking And Visualization Solution
https://absaoss.github.io/spline/
Apache License 2.0
603 stars 155 forks source link

Consumer API should respond with 400, not 500 when URL lacks of required parameters #1341

Closed wajda closed 4 months ago

wajda commented 5 months ago

Hi team,

Thank you for your support, I am new to Spline Agent and I request your help with the following issue:

I have integrated spline agent in a spark job and I can see lineage as well on Spline UI, I am trying to get Lineage json responses using Consumer API. I can successfully get API response for /data-sources, /execution-events endpoints but I am getting error when I am trying to hit curl -v 'http://localhost:8080/consumer/lineage-detailed/' curl -v 'http://localhost:8080/consumer/lineage-overview/' curl -v 'http://localhost:8080/consumer/attribute-lineage-and-impact/' I am getting response as

*   Trying [::1]:8080...
* Connected to localhost (::1) port 8080
> GET /consumer/attribute-lineage-and-impact HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/1.1 500 
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Tue, 25 Jun 2024 09:51:09 GMT
< Connection: close
< 
* Closing connection
{"errorId":"7e718411-60a4-40ba-8eb4-c4016effb268","timestamp":1719309069776,"message":null}%

image I have already checked the connectivity for Spline UI, Producer API and Consumer API. Kindly help me with the same.

Best Regards, Mohini

Originally posted by @mohini-tripathi in https://github.com/AbsaOSS/spline/discussions/1340