Details

    • Similar Issues:

      Description

      While simulating a webhook request with a POST, the plugin can't parse the request payload, saying that the JSON must begin with '{' (which it does).

      Tried with payload=

      { [JSON content] } and raw { [JSON content] }

      on body, but both didn't work.

      Using this same request options on a PUT request works fine.

      The log generated by Jenkins is attached in this issue. If you need any other information, please ask.

        Attachments

          Issue Links

            Activity

            Hide
            jmendez Jeffrey Mendez added a comment - - edited

            I'm seeing a similar error when using wget to POST a config.xml change. I'm trying to modify a build job in a shell script by retrieving the config.xml using wget, modifying the config.xml, and then posting the modified config.xml using wget. This was working in the beginning of August, but now I'm getting HTTP 500 server error.

            In the Jenkins log, I'm getting the same java.lang.reflect.InvocationTargetException exception, but caused by a different exception:

            java.lang.reflect.InvocationTargetException
            <snip>
            Caused by: java.lang.IllegalStateException: STREAMED
            at org.eclipse.jetty.server.Request.getReader(Request.java:898)
            at javax.servlet.ServletRequestWrapper.getReader(ServletRequestWrapper.java:256)
            at javax.servlet.ServletRequestWrapper.getReader(ServletRequestWrapper.java:256)
            at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:598)
            ... 81 more

            Show
            jmendez Jeffrey Mendez added a comment - - edited I'm seeing a similar error when using wget to POST a config.xml change. I'm trying to modify a build job in a shell script by retrieving the config.xml using wget, modifying the config.xml, and then posting the modified config.xml using wget. This was working in the beginning of August, but now I'm getting HTTP 500 server error. In the Jenkins log, I'm getting the same java.lang.reflect.InvocationTargetException exception, but caused by a different exception: java.lang.reflect.InvocationTargetException <snip> Caused by: java.lang.IllegalStateException: STREAMED at org.eclipse.jetty.server.Request.getReader(Request.java:898) at javax.servlet.ServletRequestWrapper.getReader(ServletRequestWrapper.java:256) at javax.servlet.ServletRequestWrapper.getReader(ServletRequestWrapper.java:256) at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:598) ... 81 more
            Hide
            tzach_solomon Tzach Solomon added a comment -

            Marcos Garcia does this still happen? If so, can you please attach the request?

            Show
            tzach_solomon Tzach Solomon added a comment - Marcos Garcia does this still happen? If so, can you please attach the request?
            Hide
            tzach_solomon Tzach Solomon added a comment -

            No response, can't do nothing with this without the JSON request

            Show
            tzach_solomon Tzach Solomon added a comment - No response, can't do nothing with this without the JSON request

              People

              • Assignee:
                tzach_solomon Tzach Solomon
                Reporter:
                msilvagarcia Marcos Garcia
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: