Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

/api/workflow/{workflowId} endpoint not working in swagger #2174

Closed
sudouser777 opened this issue Apr 14, 2021 · 9 comments
Closed

/api/workflow/{workflowId} endpoint not working in swagger #2174

sudouser777 opened this issue Apr 14, 2021 · 9 comments
Labels
type: bug bugs/ bug fixes

Comments

@sudouser777
Copy link
Contributor

Describe the bug
Get the workflow by id(/api/workflow/{workflowId}) endpoint is not working

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'http://<conductor_ip>:8080/swagger-ui/index.html?configUrl=/api-docs/swagger-config'
  2. Click on '/api/workflow/{workflowId}' endpoint. It's not working. When I click on it page is stuck (not responding)

Expected behavior
It should give the response with workflow details of given workflow id.

Screenshots

Screenshot (5)

Additional context
Add any other context about the problem here.

@sudouser777 sudouser777 added the type: bug bugs/ bug fixes label Apr 14, 2021
@apanicker-nflx apanicker-nflx added this to Triage in New Issues Apr 14, 2021
@sudouser777 sudouser777 changed the title [BUG]: /api/workflow/{workflowId} endpoint not working in swagger Apr 14, 2021
@apanicker-nflx apanicker-nflx removed this from Triage in New Issues Apr 19, 2021
@apanicker-nflx
Copy link
Collaborator

@komatiraju032 What type of persistence layer are you using? Do you see any errors in the server logs?

@sudouser777
Copy link
Contributor Author

@apanicker-nflx I am using default configuration(docker-compose.yml). And For your information endpoint is working from postman.

@maheshyaddanapudi
Copy link
Contributor

No errors observed but the issue happens only in Swagger UI. I have opened a discussion thread #2192

@sudouser777
Copy link
Contributor Author

sudouser777 commented Apr 26, 2021

@apanicker-nflx @maheshyaddanapudi it's not working because of this issue OAI/OpenAPI-Specification#822

@maheshyaddanapudi
Copy link
Contributor

@komatiraju032 is there any specification for a work around it different way to configure ? I couldn't directly find any in their Read Me. I'll explore too.

@sudouser777
Copy link
Contributor Author

sudouser777 commented Apr 26, 2021

@maheshyaddanapudi I found one more related issue on stackoverflow Swagger UI freezes after API fetch and browser crashes

@aravindanr
Copy link
Collaborator

@komatiraju032 we believe its because of the com.google.protobuf.Any type that the inputMessage and outputMessage fields in Task class. Excluding those fields in Swagger definition should solve the issue. We will get to it asap.

@sudouser777
Copy link
Contributor Author

@aravindanr I have fixed the issue with the information you have provided. I also created a PR #2210

@aravindanr
Copy link
Collaborator

Thanks @komatiraju032 . I left a minor comment in the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug bugs/ bug fixes
Projects
None yet
Development

No branches or pull requests

4 participants