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

Variables feature on Body doesnt work #136

Closed
pmoraitopoulos opened this issue Feb 6, 2024 · 6 comments
Closed

Variables feature on Body doesnt work #136

pmoraitopoulos opened this issue Feb 6, 2024 · 6 comments

Comments

@pmoraitopoulos
Copy link

when i use the variables in the URL it interpolate it.
when i use the variables in the body. it doesnt change to its value.
image
image

@pmoraitopoulos pmoraitopoulos changed the title Variables on Body doesnt work Variables feature on Body doesnt work Feb 6, 2024
@jonrosner
Copy link
Contributor

I can't replicate your issue. Are you running the latest version of Yaade? Try

docker rm -f yaade
docker pull esperotech/yaade:latest
docker run -d --restart=always -p 9339:9339 \
    -e YAADE_ADMIN_USERNAME=admin -v yaade:/app/data \
    --name yaade esperotech/yaade:latest

If that doesn't solve the issue please create a minimal reproducible example by starting a fresh instance and posting the steps to reproduce.

@pmoraitopoulos
Copy link
Author

pmoraitopoulos commented Feb 6, 2024

Now that i pull the latest variables dont work at all. it doesnt show me the value if i put the cursor on top. i have installed Yaade on synology Nas with docker. i first delete athe container and all data.
i run this

docker run -d --name=yaade
-p 9339:9339
-e YAADE_ADMIN_USERNAME=pmoraitopoulos
-v /volume1/docker/yaade:/app/data
--restart always
esperotech/yaade:latest

then i enter and there was an empty collection. i add new environment and a variable.

image

image

image
image

@jonrosner
Copy link
Contributor

jonrosner commented Feb 6, 2024

I followed the same steps and I cannot reproduce it.

Here are some other debugging suggestions:

Explicitly run docker pull esperotech/yaade:latest before starting the container

Try manually saving both the collection and request (top right is a save button) and then refresh the page.

Look into the logs of the server (docker logs -f yaade)

Use the Extension proxy instead of the server.

@pmoraitopoulos
Copy link
Author

  1. I delete the variable in the body and write it again.
  2. I mannually saved.
  3. I refresh the page.
  4. Worked !! :)

i change to another environment. Worked as well!

Thank you for you immediate response.

@jonrosner
Copy link
Contributor

maybe there is some initialization problem with the codemirror interpolation plugin. I'll close this issue for now but investigate further.

@pmoraitopoulos
Copy link
Author

Hello,

For your information, after restart the container, i had an issue.
I have a variable for a url and i use it in the URL as post.
I clicked on send button and error occur (something like ${url} could not resolve after 2 queries.
I go to the environments of the collection, i put a dot in the variable. i click save manually. Again i delete the dot from the variable url and i clicked save manually. it fixes the error.

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

No branches or pull requests

2 participants