[GH-ISSUE #4544] [bug]: ODATA URLs are not fully supported, several issues noticed #1671

Open
opened 2026-03-16 21:20:32 +03:00 by kerem · 3 comments
Owner

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?

  • I have searched the existing issues

Current behavior

I'm running these in the Hoppscotch desktop app Version 24.10.2-0 (20241113.084316) on m1 mac(OS 15.1)

  1. <>/odata/v1/entity?$filter=Id eq '100000001133882'&$select=status
    Under code snippets, i see this error -> Something went wrong

  2. 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'

  3. 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

  1. Paste this URL and notice error in the code snippets window https://services.odata.org/TripPinRESTierService/People?$filter=FirstName eq 'Scott'

  2. Paste this URL https://services.odata.org/TripPinRESTierService/People;
    Paste this into Parameters: $filter FirstName eq 'Scott'
    Notice curl code that is generated

  3. Issue 3 is reproducible only with my APIs which work fine in postman

Environment

Production

Version

Local

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? - [X] I have searched the existing issues ### Current behavior I'm running these in the Hoppscotch desktop app Version 24.10.2-0 (20241113.084316) on m1 mac(OS 15.1) 1. <<server>>/odata/v1/entity?$filter=Id eq '100000001133882'&$select=status Under code snippets, i see this error -> Something went wrong 2. 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' 3. 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 1. Paste this URL and notice error in the code snippets window https://services.odata.org/TripPinRESTierService/People?$filter=FirstName eq 'Scott' 2. Paste this URL https://services.odata.org/TripPinRESTierService/People; Paste this into Parameters: $filter FirstName eq 'Scott' Notice curl code that is generated 3. Issue 3 is reproducible only with my APIs which work fine in postman ### Environment Production ### Version Local
Author
Owner

@EmePin commented on GitHub (Nov 20, 2024):

hi

<!-- gh-comment-id:2487221583 --> @EmePin commented on GitHub (Nov 20, 2024): hi
Author
Owner

@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?

<!-- gh-comment-id:2875747668 --> @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?
Author
Owner

@qinyang1980 commented on GitHub (Jun 16, 2025):

Is this bug fixed now ?

<!-- gh-comment-id:2974927451 --> @qinyang1980 commented on GitHub (Jun 16, 2025): Is this bug fixed now ?
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#1671
No description provided.