AssemblyAI / assemblyai-cli

CLI for the AssemblyAI API
Apache License 2.0
196 stars 27 forks source link

Discord webhook URL as webhook_url has no effect #105

Open orome opened 1 year ago

orome commented 1 year ago

Describe the bug Providing a Discord webhook URL as the string value to the the --webhook_url parameter to the transcribe command

To Reproduce Steps to reproduce the behavior:

  1. Create a Discord webhook
  2. Test the webhook using Postman, confirming that it works as expected
  3. Use the same URL as the value for --webhook_url
  4. Nothing happens in Discord

Expected behavior I should see something in Discord

Desktop (please complete the following information):

orome commented 1 year ago

Could this have something to do with the body that AssemblyAI sends?

If I send a typical Discord-y body like

{
    "username": "Test",
    "content": "Test post."
}

in Postman, it works, but if I send something like

{
    "transcript_id": "5552493-16d8-42d8-8feb-c2a16b56f6e8",
    "status": "completed"
}

I get an error in Postman:

{
    "message": "Cannot send an empty message",
    "code": 50006
}

Could that be why I'm not seeing anything in Discord? If so, how do I get fix it. There seems to be not way to provide the body that Discord expects from the AssemblyAI CLI.