I am using sendhttp node and using https POST I keep getting this error in

I am using sendhttp node and using https POST
I keep getting this error in the log. i believe i proved the endpoint, header name, header value, body , user,pwd,domain

Not sure what am i missing.
com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=67377, classname=com.appiancorp.process.runtime.activities.HttpRequestActivityNTLM
java.lang.ArrayIndexOutOfBoundsException: 1
          at com.appiancorp.util.http.HttpUtils.buildHttpMethod(HttpUtils.java:87)
          at com.appiancorp.process.runtime.activities.HttpRequestActivityNTLM.run(HttpRequestActivityNTLM.java:83)
          at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:101)
          at com.appiancorp.process.runtime.framework.DefaultActivityExecutor$1.call(DefaultActivityExecutor.java:98)
          at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:25)
          at com.appiancorp.process.runt...

OriginalPostID-93608

OriginalPostID-93608

  Discussion posts and replies are publicly visible

Parents
  • It seems you have an extra header name that doesn't have a header value.

    Looking at the source code of this plug-in here is where it is failing:

    if (headerNames_ != null) {
                                  for (int h = 0; h < headerNames_.length; h++) {
                                            m.addRequestHeader(headerNames_[h], headerValues_[h]);

    which makes me think you have two header names in the headerNames field but you only have one header value in the headerValue input.
Reply
  • It seems you have an extra header name that doesn't have a header value.

    Looking at the source code of this plug-in here is where it is failing:

    if (headerNames_ != null) {
                                  for (int h = 0; h < headerNames_.length; h++) {
                                            m.addRequestHeader(headerNames_[h], headerValues_[h]);

    which makes me think you have two header names in the headerNames field but you only have one header value in the headerValue input.
Children
No Data