Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

how to call withHttp? #25

Open
akiong opened this issue Mar 8, 2016 · 2 comments
Open

how to call withHttp? #25

akiong opened this issue Mar 8, 2016 · 2 comments

Comments

@akiong
Copy link

akiong commented Mar 8, 2016

hi.. i am trying to upgrade my project from grails 2.1.1 to grails 3.0.9

in grails 3.0.9 : i install this plugin like this..

compile 'org.grails.plugins:http-builder-helper:1.0.0'

and i run it...

i get this error..

ERROR com.akiong.SmsService - No signature of method: com.akiong.SmsService.withHttp() is applicable for argument types: (java.util.LinkedHashMap, com.akiong.SmsService$_sendSms_clos ure2) values: [[uri:https://abc.web.id], com.akiong.SmsService$_sendSms_closure2@48d98154] groovy.lang.MissingMethodException: No signature of method: com.akiong.SmsService.withHttp() is applicable for argument types: (java.util.LinkedHashMap, com.akiong.SmsService$_sendSm s_closure2) values: [[uri:https://abc.web.id], com.akiong.SmsService$_sendSms_closure2@48d98154]

this is my code com.akiong.SmsService.groovy

withHttp(uri: uri) { client.getParams().setBooleanParameter("http.protocol.expect-continue", false) get(path: '/abc.php', query: [u: smsMaskingUser, p: smsMaskingPassword, d: destinationNo, m: messages]) { resp, reader -> } }

what must i do?

@akyong
Copy link

akyong commented Mar 10, 2016

i have the same error :(

@bryndavies
Copy link

I get a similar error when calling withRest() in a Grails 3.2.4 project. It looks like the plugin is failing to inject its methods into the app's controllers and services.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants