Skip to main content

I am trying to create a custom action using the Zapier custom actions feature available at https://zapier.com/app/extensions/actions?selected_api=DiscordCLIAPI@1.14.0

I used the AI-generated API request with the prompt "send a discord embed," which uses the URL "https://discord.com/api/v10/interactions/{{interaction_id}}/{{interaction_token}}/callback" for a POST request. It send an application/json body with the contents

{"type": 4, "data": {"embeds": [{"title": "{{title}}", "description": "{{description}}", "color": "{{color}}"}]}}

This is all fine; however, when trying to test it on the "test" tab, I get the following error:

Error: Request to https://discord.com/api/v10/interactions/{{interaction_id}}/{{interaction_token}}/callback returned 500. Error during execution: Unhandled variable found in the domain filter {{process.env.BASE_URL}}.

Since I did not provide valid information in the testing area, I expect an HTTP 4xx error, not a 500.

Am I doing something wrong, or is this an issue with Zapier?

 

 

Hi @zapzapzapzapzap ,

I think you might find using quik.run in Zapier a breeze for the problem you’re trying to resolve. It's a neat tool that lets you test your code snippets with various scenarios, making life easier.

 

Please refer to this blog to know more about QuikRun. If you'd like to learn more about the tool, feel free to connect with me at nparashar150@gmail.com or naman@quik.run, will be more than happy to resolve your issue. 


Reply