Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-11609

Webhook requests being sent as GET requests to Rails server

    XMLWordPrintable

Details

    Description

      I'm having trouble getting the payload for the hooks. The requests come through as GETs to my Rails app:

      #!ruby
      
      method=GET path=/commit_comments format=*/* controller=commit_comments action=create status=200
      

      Why are the requests being sent as GET instead of POST? I cannot find the payload anywhere in the raw request. Has anyone been able to get the webhook payload from a Rails app? My routes are pretty simple:

      #!ruby
      
      match 'commit_comments', to: 'commit_comments#create', via: [:get, :post]
      

      I am trying both get and post to match the Python example code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            8a7228f83c9d lserman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: