datahub-project / datahub

The Metadata Platform for your Data Stack
https://datahubproject.io
Apache License 2.0
9.63k stars 2.85k forks source link

openapi json parse exeception on datajob.datajobinfo.type field. #5463

Open yuanly opened 2 years ago

yuanly commented 2 years ago

Describe the bug openapi json parse exeception on datajob.datajobinfo.type field.

To Reproduce every time use the openapi to get or post datajob.datajobinfo aspect in version v.0.8.40

Expected behavior get or change the aspect

Screenshots curl --location --request GET 'localhost:8080/openapi/entities/v1/latest?urns=urn:li:dataJob:(urn:li:dataFlow:(kafka-connect,dbzcompact_source_mysql_artifact_json,PROD),artifact.t_artifact_repo)&aspectNames=dataJobInfo' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhY3RvclR5cGUiOiJVU0VSIiwiYWN0b3JJZCI6ImRhdGFodWIiLCJ0eXBlIjoiUEVSU09OQUwiLCJ2ZXJzaW9uIjoiMiIsImV4cCI6MTY2NTQ3NzYxMCwianRpIjoiZjBjZjM1OWQtZWEwMy00ODgyLTg4NzctNTk4MDhiZDllZmUyIiwic3ViIjoiZGF0YWh1YiIsImlzcyI6ImRhdGFodWItbWV0YWRhdGEtc2VydmljZSJ9.tmxYxgNbC0puPkYQw-yzM6DF2NK-4PxZfmMYB9J-7DI' 10:23

2022-07-21 02:08:42.476:WARN:oejs.HttpChannel:qtp1830908236-10: handleException /openapi/entities/v1/latest com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT) at [Source: (String)"{"name":"dbzcompact_source_mysql_artifact_json:artifact.t_artifact_repo","customProperties":{},"type":{"string":"COMMAND"},"__type":"DataJobInfo"}"; line: 1, column: 133] (through reference chain: io.datahubproject.openapi.generated.DataJobInfo["type"])

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

aditya-radhakrishnan commented 1 year ago

Hi there, just wanted to check if this is still an issue!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io