[GH-ISSUE #1098] Character '%' is not accepted on query parameter value #382

Closed
opened 2026-03-16 14:58:59 +03:00 by kerem · 2 comments
Owner

Originally created by @blikblum on GitHub (Aug 19, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1098

Describe the bug
Adding a query parameter with character '%' gives an error "URIError: malformed URI sequence"

To Reproduce
Steps to reproduce the behavior:

  1. Go to Request URL and add any valid URL (e.g. http://localhost/people)
  2. Click on Parameters > Add new
  3. Add a parameter with 'name' as name and value as 'ELIAS%'
  4. Click send

Expected behavior
A request should be sent with the query param value encoded: e.g: http://localhost/people?name=ELIAS%25

Screenshots

Desktop (please complete the following information):

  • OS: Windows10
  • Browser Firefox
  • Version 79

Smartphone (please complete the following information):

Additional context
Add any other context about the problem here.

Originally created by @blikblum on GitHub (Aug 19, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1098 **Describe the bug** Adding a query parameter with character '%' gives an error "URIError: malformed URI sequence" **To Reproduce** Steps to reproduce the behavior: 1. Go to Request URL and add any valid URL (e.g. http://localhost/people) 2. Click on Parameters > Add new 3. Add a parameter with 'name' as name and value as 'ELIAS%' 4. Click send **Expected behavior** A request should be sent with the query param value encoded: e.g: http://localhost/people?name=ELIAS%25 **Screenshots** -- **Desktop (please complete the following information):** - OS: Windows10 - Browser Firefox - Version 79 **Smartphone (please complete the following information):** -- **Additional context** Add any other context about the problem here.
kerem 2026-03-16 14:58:59 +03:00
  • closed this issue
  • added the
    bug
    minor
    labels
Author
Owner

@liyasthomas commented on GitHub (Aug 20, 2020):

Must be an issue with encodeURIComponent(). Will look into it ASAP.

<!-- gh-comment-id:677174227 --> @liyasthomas commented on GitHub (Aug 20, 2020): Must be an issue with `encodeURIComponent()`. Will look into it ASAP.
Author
Owner

@liyasthomas commented on GitHub (Aug 20, 2020):

This issue seems to be quite weird. I just tested this on my phone's browser and it is working as expected.

@blikblum can try to replicate this from your phone's browser?

EDIT: Nevermind. Fixed it. 👍

<!-- gh-comment-id:677666917 --> @liyasthomas commented on GitHub (Aug 20, 2020): This issue seems to be quite weird. I just tested this on my phone's browser and it is working as expected. @blikblum can try to replicate this from your phone's browser? EDIT: Nevermind. Fixed it. 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#382
No description provided.