You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "PhilipCubix (via GitHub)" <gi...@apache.org> on 2026/07/22 10:03:17 UTC

[I] [Bug]: REST Client ignoring parameters (hop)

PhilipCubix opened a new issue, #7599:
URL: https://github.com/apache/hop/issues/7599

   ### Apache Hop version?
   
   2.18.1
   
   ### Java version?
   
   21
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   Hi,
   
   thanks for the improved documentation, but I still don't get query parameters to work.
   
   I've been able to create a small example flow: 
   - I start with a row containing a base URL, a query parameter field name and a query parameter value
   - first "REST Client" runs, and should use these 3 fields to do a GET request, but it doesn't use the parameters and gets an unfiltered result,
   - next, after combining the fields into a URL with the query parameters included, "REST Client 2" gets the correct result
   
   2026/07/22 11:56:29 [Detailed] **REST client**.0 - Response time (milliseconds): [598] for [https://api.restful-api.dev/objects]
   2026/07/22 11:56:29 [Basic]    Write to log.0 - 
   2026/07/22 11:56:29 [Basic]    Write to log.0 - ------------> Linenr 1------------------------------
   2026/07/22 11:56:29 [Basic]    Write to log.0 - fieldName = id
   2026/07/22 11:56:29 [Basic]    Write to log.0 - fieldValue = ff8081819d82fab6019f701d06c074a4
   2026/07/22 11:56:29 [Basic]    Write to log.0 - result = [{"id":"1","name":"Google Pixel 6 Pro","data":{"color":"Cloudy White","capacity":"128 GB"}},{"id":"2","name":"Apple iPhone 12 Mini, 256GB, Blue","data":null},{"id":"3","name":"Apple iPhone 12 Pro Max","data":{"color":"Cloudy White","capacity GB":512}},{"id":"4","name":"Apple iPhone 11, 64GB","data":{"price":389.99,"color":"Purple"}},{"id":"5","name":"Samsung Galaxy Z Fold2","data":{"price":689.99,"color":"Brown"}},{"id":"6","name":"Apple AirPods","data":{"generation":"3rd","price":120}},{"id":"7","name":"Apple MacBook Pro 16","data":{"year":2019,"price":1849.99,"CPU model":"Intel Core i9","Hard disk size":"1 TB"}},{"id":"8","name":"Apple Watch Series 8","data":{"Strap Colour":"Elderberry","Case Size":"41mm"}},{"id":"9","name":"Beats Studio3 Wireless","data":{"Color":"Red","Description":"High-performance wireless noise cancelling headphones"}},{"id":"10","name":"Apple iPad Mini 5th Gen","data":{"Capacity":"64 GB","Screen size
 ":7.9}},{"id":"11","name":"Apple iPad Mini 5th Gen","data":{"Capacity":"254 GB","Screen size":7.9}},{"id":"12","name":"Apple iPad Air","data":{"Generation":"4th","Price":"419.99","Capacity":"64 GB"}},{"id":"13","name":"Apple iPad Air","data":{"Generation":"4th","Price":"519.99","Capacity":"256 GB"}}]
   2026/07/22 11:56:29 [Basic]    Write to log.0 - 
   2026/07/22 11:56:29 [Basic]    Write to log.0 - ====================
   ..
   2026/07/22 11:56:29 [Detailed] **REST client 2**.0 - Connecting to [https://api.restful-api.dev/objects**?id=ff8081819d82fab6019f701d06c074a4**] ...
   2026/07/22 11:56:29 [Basic]    Delay row.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
   2026/07/22 11:56:29 [Basic]    Formula.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
   2026/07/22 11:56:29 [Detailed] REST client 2.0 - Response time (milliseconds): [251] for [https://api.restful-api.dev/objects?id=ff8081819d82fab6019f701d06c074a4]
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - 
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - ------------> Linenr 1------------------------------
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - fieldName = id
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - fieldValue = ff8081819d82fab6019f701d06c074a4
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - result = [{"id":"ff8081819d82fab6019f701d06c074a4","name":"apple macbook pro 16 updated at 2026-07-17 15:14:47 via full URL","data":{"year":2020,"price":1849.99,"CPU model":"Intel Core i9","Hard disk size":"1 TB"}}]
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - **urlWithParameters** = https://api.restful-api.dev/objects?id=ff8081819d82fab6019f701d06c074a4
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - 
   2026/07/22 11:56:29 [Basic]    Write to log 2.0 - ====================
   
   [testQueryParameters.zip](https://github.com/user-attachments/files/30263639/testQueryParameters.zip)
   
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: REST Client ignoring parameters (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #7599: [Bug]: REST Client ignoring parameters
URL: https://github.com/apache/hop/issues/7599


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: REST Client ignoring parameters (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #7599:
URL: https://github.com/apache/hop/issues/7599#issuecomment-5045646268

   The parameter name is a fixed value field, if you write id there everything works as expected
   <img width="442" height="406" alt="Image" src="https://github.com/user-attachments/assets/3ebeac56-3734-44d9-a437-c6be1266094b" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org