Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: http route response should not have Double quotes #5362

Closed
broven opened this issue Feb 24, 2025 · 1 comment
Closed

bug: http route response should not have Double quotes #5362

broven opened this issue Feb 24, 2025 · 1 comment
Assignees
Labels
bug Something isn't working release: 1.468.0

Comments

@broven
Copy link

broven commented Feb 24, 2025

Describe the bug

Hi, I want to make make some api via Windmill, expose through http route but is seems, winmilld will add extra double quotes to the response
if the script return a string type data (like abc), windmill http route will response as "123"

To reproduce

  1. create a flow, make result string
  2. create a GET http route for flow
  3. access the URL
  4. see "string"

Expected behavior

expect http route serve string data without double quotes

Screenshots

Image

Image

Browser information

No response

Application version

No response

Additional Context

No response

@broven broven added the bug Something isn't working label Feb 24, 2025
@HugoCasa
Copy link
Contributor

Hi @broven, by default Windmill returns JSON. If you want to return plain text, you'll need to use a custom response content type: https://www.windmill.dev/docs/core_concepts/webhooks#custom-response-content-type
Returning a custom content type will also remove the quotation marks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release: 1.468.0
Projects
None yet
Development

No branches or pull requests

3 participants