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]: Copy as curl button generates incorrect url #2888

Closed
1 task done
epahl-atlassian opened this issue Mar 22, 2024 · 1 comment
Closed
1 task done

[Bug]: Copy as curl button generates incorrect url #2888

epahl-atlassian opened this issue Mar 22, 2024 · 1 comment
Labels

Comments

@epahl-atlassian
Copy link

Bug Description

Using Copy as curl gives a broken url with a missing slash at the start of the url path.
e.g.
http://127.0.0.1:8080evaluate/v1/boolean

Version Info

1.38.2

Search

  • I searched for other open and closed issues before opening this

Steps to Reproduce

  1. Select a flag
  2. Optionally add context etc

Result e.g.

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Cache-Control: no-store" -d '{"flagKey":"micros-alias-failover-opt-in","entityId":"a1ce6552-2efc-43e2-a3a9-ab1161954afd","context":{"service":"my-service"},"namespaceKey":"default"}' \
  http://127.0.0.1:8080evaluate/v1/boolean

Expected Behavior

Return a curl command with a valid url, e.g. http://127.0.0.1:8080/evaluate/v1/boolean

Additional Context

No response

@epahl-atlassian epahl-atlassian changed the title [Bug]: [Bug]: Copy as curl button generates incorrect url Mar 22, 2024
@markphelps
Copy link
Collaborator

Yah I noticed this earlier this week and fixed it it #2875

Will go out in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants