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

[BasicAuth] with @ in username gives "error: Parsing json" #513

Closed
humphd opened this issue Mar 21, 2022 · 1 comment · Fixed by #517
Closed

[BasicAuth] with @ in username gives "error: Parsing json" #513

humphd opened this issue Mar 21, 2022 · 1 comment · Fixed by #517
Labels
bug Something isn't working
Milestone

Comments

@humphd
Copy link

humphd commented Mar 21, 2022

Given the following .hurl file:

POST http://localhost:8080/
[BasicAuth]
user1@email.com: password1

Running this produces the following error:

$ hurl --test tests/integration/auth.hurl
expr=tests/integration/auth.hurl
tests/integration/post-fragments.hurl: RUNNING [1/1]
error: Parsing json
  --> tests/integration/auth.hurl:7:2
   |
 7 | [BasicAuth]
   |  ^ json error
   |

Removing the @ works. This is surprising (to me). Is there someway to handle this case without having to produce the Authorization header manually? I really like the expressiveness of having the username/password in the test case, since it's part of the test.

@jcamiel jcamiel added the bug Something isn't working label Mar 22, 2022
@jcamiel jcamiel added this to the 1.6.1 milestone Mar 22, 2022
@fabricereix
Copy link
Collaborator

Thanks @humphd for reporting this bug.
We will fix it in the 1.6.1 patch version by the end of the week.

@jcamiel jcamiel linked a pull request Mar 25, 2022 that will close this issue
@jcamiel jcamiel closed this as completed Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants