SupabaseS
Supabase12mo ago
Chris

Database insert returning 404 (TypeScript)

        const error: any = await supabaseService
            .from('stations.stations')
            .insert({
                user_id: userId,
                name: name,
                description: description,
                episodes: JSON.stringify(episodesData),
                image_url: imageUrl,
            });

        if (error) {
            console.error('Database insert error:', error);
            return res.status(500).json({ error: 'Failed to save station data.', code: 500 });
        }


Image 1 shows where table is located (schema stations)

Below is the error:
{
  "error": {},
  "data": null,
  "count": null,
  "status": 404,
  "statusText": "Not Found"
}


Perhaps I'm selecting it wrong? How can I select a schema and a table inside it?
image.png
Was this page helpful?