/api/action returning 404
Hello,
I have a convex deployment and I'm trying to send some data to my table using an action from a go program.
From the docs it looks straightforwards but I was having some truouble.
So I set up a simple action that just prints Hello to teh console. This action runs in the dashboard manually.
When I call this function from my go code I get "HTTP error 404: This Convex deployment does not have HTTP actions enabled."
I don't see anywhere to "enable HTTP actions".
this is my action:
This is my go code code:
When I google this error or talk to AI about it I get a lot of stuff about setting up "http actions" but that's not what I want to do.
I want to do what's in this documentation: https://docs.convex.dev/http-api/#functions-api Can someone help me understand please? I thought this was going to be pretty straightforward by looking at the docs and now i'm just spinning.
I want to do what's in this documentation: https://docs.convex.dev/http-api/#functions-api Can someone help me understand please? I thought this was going to be pretty straightforward by looking at the docs and now i'm just spinning.
Convex HTTP API | Convex Developer Hub
Connecting to Convex directly with HTTP
4 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
HTTP actions are different from normal actions. Check out the setup here: https://docs.convex.dev/functions/http-actions
HTTP Actions | Convex Developer Hub
Build HTTP APIs directly in Convex
right.
but what is this API then?
https://docs.convex.dev/http-api/
Convex HTTP API | Convex Developer Hub
Connecting to Convex directly with HTTP
like what is this page and code supposed to be telling me?
oh, you use .cloud and not .site and it works perfectly.