Replies: 1 comment
-
Hey @mikececco - Your function and With that error, it seems there might be some sort of protection (e.g. Vercel deployment protection) or otherwise on your URL. Do you have your If you already sorted it out, please let us know what the issue was! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As you can see calling the endpoint is working:
but when I try to sync app/detect functions they are not recognized. I get
We could not reach your URL. Please verify that your URL is correct and check your server logs.
my api/index.ts:
`
import {generateContent} from './inngest/generateContent.js';
import { inngest } from "./inngest/client.js";
import { serve } from "inngest/express";
app.use("/api/inngest", express.json());
app.use("/api/inngest", serve({client: inngest, functions: [generateContent] as any}));`
my api/inngest/index.ts:
`export { inngest } from "./client.js";
import { generateContent } from "./generateContent.js";
import { Request, Response } from 'express';
export default async (req: Request, res: Response) => {
try {
// const event = { /* construct event object from req if needed */ };
const hand = await generateContent;
} catch (error) {
console.error('Error processing image:', error);
res.status(500).send('Error processing image');
}
};
`
and part of my /api/inngest/generateContent.ts:
export const generateContent = inngest.createFunction( { id: "generate-content" }, { event: "generateContent" }, async ({ event }) => {...
Why are they not recognized?
Beta Was this translation helpful? Give feedback.
All reactions