mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #4544] [bug]: ODATA URLs are not fully supported, several issues noticed #1671
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1671
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bipinm on GitHub (Nov 18, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4544
Is there an existing issue for this?
Current behavior
I'm running these in the Hoppscotch desktop app Version 24.10.2-0 (20241113.084316) on m1 mac(OS 15.1)
<>/odata/v1/entity?$filter=Id eq '100000001133882'&$select=status
Under code snippets, i see this error -> Something went wrong
When $filter (and $select) are moved to parameters tab, the code snippet(curl) shows some result which does not work
curl: (3) URL rejected: Malformed input to a URL function
Generated code: curl --request GET
--url 'https://services.odata.org/TripPinRESTierService/People?$filter=FirstName eq '''Scott''''
Postman Generated code which work: curl --location 'https://services.odata.org/TripPinRESTierService/People?%24filter=FirstName%20eq%20%27Scott%27'
When i use $filter and $select directly in url (as in 1.), i get proper ouput but when its in parameters, i get error
{
"error": {
"code": "400",
"message": "The types 'Edm.Boolean' and 'Edm.String' are not compatible."
}
}
Steps to reproduce
Paste this URL and notice error in the code snippets window https://services.odata.org/TripPinRESTierService/People?$filter=FirstName eq 'Scott'
Paste this URL https://services.odata.org/TripPinRESTierService/People;
Paste this into Parameters: $filter FirstName eq 'Scott'
Notice curl code that is generated
Issue 3 is reproducible only with my APIs which work fine in postman
Environment
Production
Version
Local
@EmePin commented on GitHub (Nov 20, 2024):
hi
@gtheraud commented on GitHub (May 13, 2025):
We are also experiencing the same issue. Could anyone provide insights or suggestions as to why Hoppscotch does not support the $filter query parameters?
@qinyang1980 commented on GitHub (Jun 16, 2025):
Is this bug fixed now ?