none
Webhook Registration 400 Error RRS feed

  • General discussion

  • Hello ... 

    I create a sending webhook in asp.net mvc and i want to recieve notif message after file uploading in my site 

    this is my registrstion code : 

     using (var httpClient = new HttpClient(handler))
                    {
                        var registration = new Registration
                        {
                            WebHookUri = $"{webhookReceiverBaseAddress}/api/webhooks/incoming/custom",
                            Description = "A File is Uploaded",
                            Secret = "12345678901234567890123456789012",
                            Filters = new List<string> { "MessageUploadedEvent" }
                        };

                        var result = httpClient.PostAsJsonAsync($"{webhookSenderBaseAddress}api/webhooks/registrations", registration).Result;

    }

    and after this request the result is 400 , BadRequest ... 
    what should i do ?  

    • Moved by CoolDadTx Monday, September 10, 2018 2:04 PM ASP.NET related
    Sunday, September 9, 2018 8:42 AM

All replies