graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

ODATA query parameters not url-encoded

Open WichardRiezebos opened this issue 1 month ago • 0 comments

Issue workflow progress

Progress of the issue based on the Contributor Workflow

Make sure to fork this template and run yarn generate in the terminal.

Please make sure Mesh package versions under package.json matches yours.

  • [ ] 2. A failing test has been provided
  • [ ] 3. A local solution has been provided
  • [ ] 4. A pull request is pending review

Describe the bug

When using OData with query parameters, the query parameters are not url-encoded. This worked last week?

* STATE: INIT => CONNECT handle 0x14104be08; line 1879 (connection #-5000)
* curl_url_set rejected https://api.server.nl/OData/V1/projects?$filter=Number eq '1234'&$select=Id,Description: Bad query
* Closing connection -1

To Reproduce Steps to reproduce the behavior:

Expected behavior

Do a curl with url-encoded parameters.

Environment:

  • OS:
  • @graphql-mesh/odata:
  • NodeJS:

everything latest version

Additional context

WichardRiezebos avatar May 17 '24 10:05 WichardRiezebos