• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • bitbucket-plugin
    • Ubuntu Server - Linux - 64 bit
      Jenkins 1.570
      Bitbucket plugin 1.0

      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.

          [JENKINS-23681] Error on parsing POST requests

          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

          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

          Tzach Solomon added a comment -

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

          Tzach Solomon added a comment - msilvagarcia does this still happen? If so, can you please attach the request?

          Tzach Solomon added a comment -

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

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

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

              Created:
              Updated:
              Resolved: