Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute Webhook with Poll object HTTP 403 #6871

Closed
TuxedoCode opened this issue May 15, 2024 · 3 comments
Closed

Execute Webhook with Poll object HTTP 403 #6871

TuxedoCode opened this issue May 15, 2024 · 3 comments
Assignees
Labels

Comments

@TuxedoCode
Copy link

Description

I have a testing server for webhooks, and sending the Execute request having a poll object on the request body, the response is always a HTTP 403

Steps to Reproduce

Set up your URL for the Execute request

Then in the request body set this JSON

{
  "avatar_url": "https://cdn-icons-png.flaticon.com/512/3398/3398643.png",
  "username": "Test Hook",
  "poll": {
    "question": {
      "text": "Test Question"
    },
    "answers": [
      {
        "answer_id": 1,
        "poll_media": {
          "text": "Yes"
        }
      },
      {
        "answer_id": 2,
        "poll_media": {
          "text": "No"
        }
      }
    ],
    "duration": 72,
    "allow_multiselect": false,
    "layout_type": 1
  }
}

Expected Behavior

To get a HTTP 204 response code

Current Behavior

Getting a HTTP 403 response code

Screenshots/Videos

Screenshot_37

Client and System Information

Insomnia v9.2.0
Windows 10

@TuxedoCode TuxedoCode added the bug label May 15, 2024
@MCausc78
Copy link
Contributor

looks like polls still locked under experiment for webhooks but not bots. for temporary fix you can copy paste X-Super-Properties from your client or use mine:

x-super-properties: eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJjYW5hcnkiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC4zNTQiLCJvc192ZXJzaW9uIjoiMTAuMC4yMjAwMCIsIm9zX2FyY2giOiJ4NjQiLCJhcHBfYXJjaCI6Ing2NCIsInN5c3RlbV9sb2NhbGUiOiJlbiIsImJyb3dzZXJfdXNlcl9hZ2VudCI6Ik1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7IFdpbjY0OyB4NjQpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIGRpc2NvcmQvMS4wLjM1NCBDaHJvbWUvMTI0LjAuNjM2Ny4yMDEgRWxlY3Ryb24vMzAuMC40IFNhZmFyaS81MzcuMzYiLCJicm93c2VyX3ZlcnNpb24iOiIzMC4wLjQiLCJjbGllbnRfYnVpbGRfbnVtYmVyIjoyOTM4MjgsIm5hdGl2ZV9idWlsZF9udW1iZXIiOjQ3OTIwLCJjbGllbnRfZXZlbnRfc291cmNlIjpudWxsLCJkZXNpZ25faWQiOjB9

@tpcstld
Copy link
Contributor

tpcstld commented May 15, 2024

I'm gonna rip the experiment gate out, should be done by EOD.

@tpcstld
Copy link
Contributor

tpcstld commented May 16, 2024

Due to shenanigans the code is merged internally, but the production API deploy for this will be done tomorrow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants