Couldnt fetch data #3484
Replies: 3 comments 2 replies
-
When you look inside of the network tab in the developer tool, do you see the request from the supabase call being sent? if this is being sent then it should contain a response body which will help you to debug this. |
Beta Was this translation helpful? Give feedback.
-
Correct me if I'm wrong, but isn't it; let { data: response, error } = await supabase
.from("wrong_answers")
.select("*");
console.log(response); |
Beta Was this translation helpful? Give feedback.
-
So probably something you know but just in case, the getData is async (and returns a promise) so the code after getData will continue to run even while the await is blocking the two console.logs. If you have other code running generating console messages your console.logs may be much further down from the original user message. |
Beta Was this translation helpful? Give feedback.
-
I have an issue with the getData function, it prints the user successfully, but doesn't print resp after the await block, or the text 'user'.
The code used for the table is as follows:
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions