Hi Harold,
any possibilities to set proxy option on logonToGmail(); method?
Works perfect on my local machine, but stacks on SocketTimeoutException when running it via CI/CD (Bamboo) on master.
Thanks,
Remi
Hi Harold,
any possibilities to set proxy option on logonToGmail(); method?
Works perfect on my local machine, but stacks on SocketTimeoutException when running it via CI/CD (Bamboo) on master.
Thanks,
Remi
For everyone running with the same issue, working solution below:
`private Gmail logonToGmail() {
// Build a new authorized API client service.
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("host", port));
final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport.Builder().setProxy(proxy).build();
return new Gmail.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))
.setApplicationName(APPLICATION_NAME)
.build();
}`
you sir, are amazing!
Combined this with split at substring code i wrote and am now pulling email strings back into my IDE right at a certain point to get a transaction number I needed. Yesss
I am getting below error,can someone help me to resolve it.
I double checked all jars and they seem to be Ok.
org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoSuchMethodError: com.google.api.client.http.HttpRequest.setResponseReturnRawInputStream(Z)Lcom/google/api/client/http/HttpRequest;
at GmailUtil.invokeMethod(gmail.groovy)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50)
Hello guys, could any of you tell me what Iām doing wrong here? I already import the jars but is still failing the imports
Maybe the Jar are not the correct ones?
Thanks in advance!
It seems the issue of not being able to find is resolved by replacing JacksonFactory with GsonFactory, since the former is deprecated.
Unforunately I get an even weirder error:
It throws an IllegalArgumentException when calling GoogleAuthorizationCodeFlow.Builder
This looks perfect for my needs.
However, I get the error it cannot resolve com.google.api.client.json.jackson2.JacksonFactory
Not sure how to solve that.
Any help would be greatly appreciated.
thanks, @Harold_Owen for the useful keyword. I am unfortunately not a developer, so I would like to ask nicely in the round if someone can extend the script that also the email content of the last email can be read? The Gmail Read and Write plugin does not work via Jenkins.
Thanks