Code for HTTP Request Not Working

(Benjamin Intal) #1

I was trying to perform an http request and it’s not doing anything. I used ‘Code’ and ‘Webhook & HTTP’ boxes to no avail. The request I’m sending works fine when I query it on my own.

I did a simple test in a Code box to check if this gets outputted in the chat:

resolve("WORKS");

It wasn’t showing up, but the other responses before or after it are showing up fine.

I also found on the docs that I should check the logs to see whether the code was failing or not, however I cannot find where those logs are. I’m a free user for now, is that only available for paying customers?

(Benjamin Intal) #2

I found it. It wasn’t apparent, but you need a message box then use the variable from an http request in that. Please add that in the docs. Based on what I read, I thought doing a resolve outputted the text right away.