$ in request path is automatically encoded as %24
I have checked the following:
- [x] I have searched existing issues and found nothing related to my issue.
This bug is:
- [x] Making Bruno unusable for me.
- [ ] Slowing me down but I'm able to continue working.
- [ ] Annoying.
- [x] This feature was working in a previous version but is broken in the current release.
Bruno version
4.0.0
💻 Operating System
Windows
Specific OS Version / Distro
Windows 11 Pro
🐞 Describe the bug
Bruno is automatically URL-encoding the $ character when it is used directly in the request path.
This worked correctly in Bruno 3.5.1, where $ was sent as entered. In newer versions, it is encoded to %24.
For example, this request:
POST {{PRV_url}}/$create-identity
is currently sent as:
POST {{PRV_url}}/%24create-identity
This changes the endpoint and causes requests to fail for APIs where $ is intentionally part of the path.
Expected behavior
The path should be sent as configured:
/$create-identity
This was the behavior in Bruno 3.5.1.
Actual behavior
Bruno encodes $ to %24:
/%24create-identity
This appears to be a regression introduced after version 3.5.1. Other special characters in URL paths may potentially be affected as well.
📝 Steps to reproduce
Send a request with $ in the request path
And you will see in the network tab, it is send as
📁 Collection to reproduce
No response
📷 Screenshots/Live demo link
Hi @ArthurTimmermans, could you please try turning off "URL Encoding" from collections settings and send the request again?
This would give you the expected behaviour and will not it to encoded to %24.
In Network tab -
Faced the same issue. Disabled the URL encoding does the trick to resolve it.
Hi @ArthurTimmermans, just checking in to see if turning off URL Encoding solved this issue for you?
I have also run into this issue. API paths with "$" in it are very common for some API operations. I would argue this is considered a bug, as the option is hidden fairly deep in the settings. It took me over 1hr to find this.
The description of this setting says it "Automatically encodes query parameters", but these are not query parameters if they are part of the url path.
Hi all. I have the same issue on Bruno 4.1.0. Disabling URL Encoding makes the request work, but this is not a practical solution because other characters in the URL may still require encoding. Please note that HL7 FHIR api makes high use of $ operations.
The same problem happens if you want to use a colon in the URL. https://foo.bar/api/foo:bar --> https://foo.bar/api/foo%3Abar
The result in my case was like:
{
"error_code": "ENDPOINT_NOT_FOUND",
"message": "No API found for 'POST /foo%3Abar'",
"details": [
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"request_id": "123",
"serving_data": ""
}
]
}