42P01 error from edge function
I have an edge function that was working and then stopped. I can't think of what I changed, and I have another almost-identical edge function that works fine on the same database. The only difference is which table they're calling.
The error I get is this:
This is the code section that generates the error:
And here is the error catch itself:
I've verified that there's data available to write to the table.
You can see in the screenshot that the table exists. Why would it kick this error, especially since it's succeeded before?
The error I get is this:
"Error posting data: {\n code: \"42P01\",\n details: null,\n hint: null,\n message: 'relation \"android_app_lookups\" does not exist'\n}\n"This is the code section that generates the error:
const { data, error } = await supabase.from('android_app_lookups').update({
s_title: s.title,
s_product_id: s.product_id,
s_authors: s.authors,
s_developer_contact: s.developer_contact,
s_extensions: s.extensions,
s_release_date: s.release_date,
s_rating: s.rating,
s_reviews: s.reviews,
s_downloads: s.downloads,
s_content_rating: s.content_rating,
s_rank: s.rank,
s_categories: s.categories,
s_snippet: s.snippet,
s_description: s.description,
s_thumbnail: s.thumbnail,
s_data_safety: s.data_safety,
s_additional_information: s.additional_information,
lookup_completed: 1
}).eq('id', id).select();And here is the error catch itself:
} catch (err) {
console.log({
message: err?.message ?? err
});I've verified that there's data available to write to the table.
You can see in the screenshot that the table exists. Why would it kick this error, especially since it's succeeded before?
