generic error
I'm gettting a generic "Your request couldn't be completed" error when calling my endpoint. The logs on Convex aren't acknowledging that the call is being made. Something I noticed is that my action never popped up on the functions list, I'm wondering if I maybe ballsed it up somehow.
14 Replies
This is my action
basically my endpoint from earlier but extracted into an action
is it showing up on the dashboard?
nah :[
npx convex dev
(or in some of the tutorial projects, npm run dev
is good enough) - makes sure that functions get synced over to Convex and show up on the dashboardI'm not getting any errors from npx convex dev or the logs either
yeah im doing convex dev
hmmm, one thing is that actions have to be in
convex/actions/
directoryif it's working right it'll look something like this. Here's a screenshot from one of my apps

(I have an action in a file called
page.ts
that would do it. I'm back to where we were originally though: fetch is not defined
gotta do the standard
node-fetch
thing in your package.json
npm
node-fetch
A light-weight module that brings Fetch API to node.js. Latest version: 3.3.0, last published: 3 months ago. Start using node-fetch in your project by running
npm i node-fetch
. There are 29684 other projects in the npm registry using node-fetch.I just npm installed
node-fetch
but it's still doing it
oh wait i probably have to import it lmao
sick it works
preciate yaThanks for the report of the generic error! Better error message is in the works 🙂