Hi, Attempting to PUT data to an endpoint, was previously working fine, haven't changed anything on my side or on the endpoint side, and for some reason its now not working and throwing the following error. Errortype: org.apache.http.ProtocolException Message: Target host is not specified StackTrace: Error calling REST service..... Advanced stacktrace: at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:55) Caused by: java.security.PrivilegedActionException: org.apache.http.client.ClientProtocolException at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:15) Caused by: null at java.security.AccessController.doPrivileged(Native Method) at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:11) at com.mendix.http.LoggableHttpClient.execute(LoggableHttpClient.scala:18) at com.mendix.integration.actions.microflow.RestCallAction.$anonfun$executeRequest$2(RestCallAction.scala:65) at com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10) Payload.... Request content for PUT request to (1)/products/(2) HTTP/1.1 Authorization: (omitted) content-type: application/json iso2code: DE {"name":"Test","sku":"DAI-10-00003-5","displayName":"tester 1","temperatureMax":5,"temperatureMin":5,"packingSize":50,"packingUnit":"g","category":{"abbreviation":"DAI"},"country":{"iso2Code":"DE"},"subCategory":{"name":"Cheese"},"coolingType":{"name":"Ambient"},"packagingType":{"name":"Kühlpflichtig"}} The data itself is fine, I attempted the exact same request using POSTMan and it worked fine, using the same security and data.... So it looks to be some weird mendix issue, not sure... Any help would be appreciated! Cheers Adrian
asked
Adrian Southwart
1 answers
0
This error indicates that the URL is not complete
For instance when try to access www.mendix.com instead of https://www.mendix.com
Maybe one of the constants that form the url is empty?