OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

API ingestion with BitBucket does not work

Open chrisrayrayne opened this issue 1 year ago • 4 comments

Affected module Does it impact the UI, backend or Ingestion Framework? Ingestion

Describe the bug A clear and concise description of what the bug is. With an OpenAPI spec on BitBucket Cloud I cannot get a connection successfully working. I debugged a bit with curl and so on. BitBucket Cloud responds a JSON in the body but with Content-Type "plain/text". This is not a bug in Open Metadata, nevertheless I cannot add APIs.

To Reproduce Use the Cloud API to get a JSON

Expected behavior A clear and concise description of what you expected to happen. I add an API with URL and the API gets ingested.

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8] 1.6.4
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ] 1.6.4

Additional context Add any other context about the problem here. Consider dropping Content-Type and rather checking for tags in the JSON or file extension.

chrisrayrayne avatar Mar 11 '25 14:03 chrisrayrayne

@chrisrayrayne if its not a bug in OpenMetadata, whats the goal with this issue? what are you expecting us to fix here?

harshach avatar Mar 11 '25 22:03 harshach

I would prefer to have the connection check less strict, or checking the content rather the content-type. In this case we can still ingest from not so good setup sources, which are still parseable and trustworthy. I will do a proposal on a solution, you can then still decide if it fits your requirements. But I need to get my dev environment working first to test my changes. Could you please assign this issue to me?

chrisrayrayne avatar Mar 12 '25 05:03 chrisrayrayne

Thanks @chrisrayrayne assigned it to you. If you need any help with dev env, jump into contributor channel in our OSS slack

harshach avatar Mar 12 '25 06:03 harshach

fixed by: https://github.com/open-metadata/OpenMetadata/pull/20736

ulixius9 avatar Apr 16 '25 03:04 ulixius9