Webhook Returns Error 400

Comentarios

5 comentarios

  • Donovan_DMC

    You can setup a webhook between Discord and Github easily (note: /github MUST be added to the end of the webhook url when you put it in github!)

    image 1

    image 2

    As for your issue here, you cannot use mailto links as the url there, you can only use http and https links. It works fine when I replace them with regular urls. image

    If you look at the response, it tells you which embed the error is in.

     

    1
    Acciones de comentarios Permalink
  • WSDMatty

    Thank you for your response.

    I do not use github. This is a private repository and although I want commit messages posted, i don't wish to share the entire code.

    As for the issue, I had figured that out myself a few minutes ago, and have been arguing with a new issue..

    It accepts the payload, but only prints the first embed item. I'm sure i'll get it figured out though. Going through it with a hammer for some percussive maintenance.

    Thanks for your help. 

    0
    Acciones de comentarios Permalink
  • Donovan_DMC

    It only accepts one of those embed objects, it's an array because of the other types (ex: link embeds), it just tosses the others out

    1
    Acciones de comentarios Permalink
  • WSDMatty

    AHA!

    Alright. So removing the URL of the embed made it work the way i was expecting. It now posts all commits updated in the current push as one message, each commit a separate embed. (previously i had it sending a separate message for each commit.. but when i do 6 commits before pushing, it gets ... annoying.)

    Thank you so much!

    0
    Acciones de comentarios Permalink
  • Donovan_DMC

    Ah, sorry about my misinformation, I though you could only use one embed

    0
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.