DevOps Automation

 View Only
Expand all | Collapse all

We have a problem using Web Utility Send HTTP step.

  • 1.  We have a problem using Web Utility Send HTTP step.

    Posted Tue May 17, 2022 12:45 PM

    We are using the Web Utility Send HTTP step with the following fields set

    URL https://notifications.hursley.ibm.com/test/api/index.php

    METHOD - POST

    HEADERS -

    Content-Type:application/x-www-form-urlencoded

    Accept:text/html

    Host:notifications.hursley.ibm.com

    DATA - /udeployclient/udclient/convdate/${p:inputa}

    When this step is run it returns the following error :

    [action] Building and validating request.

    Caught: java.lang.NumberFormatException: For input string: ""

    java.lang.NumberFormatException: For input string: ""

    at com.urbancode.air.plugin.webutilities.SendHttpRequest.executeHTTP(SendHttpRequest.groovy:79)

    at com.urbancode.air.plugin.webutilities.SendHttpRequest$executeHTTP.callCurrent(Unknown Source)

    at com.urbancode.air.plugin.webutilities.SendHttpRequest.run(SendHttpRequest.groovy:36)

    Plugin Execution completed at: 2022-05-17T11:56:03.239Z

    Post Process completed at: 2022-05-17T11:56:03.244Z

    Any help resolving this error would be appreciated.


    #UrbanCodeDeploy
    #Support
    #SupportMigration


  • 2.  RE: We have a problem using Web Utility Send HTTP step.

    Posted Tue May 24, 2022 04:55 PM

    The message "Caught: java.lang.NumberFormatException: For input string: "" indicates that the plugin's script tried to convert a String into primitive data types such as int, float, double, long, byte, short, etc. but it failed.

    It seems like there is a missing parameter that you are not entering when running the plugin, and the plugin's script is not able to proceed without this parameter.

    Please review the parameters you are passing when running this plugin, the plugin's doc states that only the URL is mandatory, but it might be possible that another parameter that is not listed as mandatory, needs to be entered to run the plugin:

    https://www.urbancode.com/plugindoc/web-utilities#send_http_call


    #Support
    #SupportMigration
    #UrbanCodeDeploy