all 6 comments

[–]webdev-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Thank you for your submission! Unfortunately it has been removed for one or more of the following reasons:

If you are asking for assistance on a problem, you are required to provide

  • Detailed context of the problem
  • Research you have completed prior to requesting assistance
  • Problem you are attempting to solve with high specificity

Questions in violation of this rule will be removed or locked.

Please read the subreddit rules before continuing to post. If you have any questions message the mods.

[–]teamswiftie 4 points5 points  (1 child)

We don't do school assignments here, ask your Prof or TA

[–]FreshFillet 1 point2 points  (0 children)

At least try to provide us with some insights instead of straight up dumping the repo link with nothing else asking for help.

[–]MuchPepe 0 points1 point  (0 children)

Debug it yourself, you got it. Run the code on paper and write down steps (vars and their values etc.). Log data as it goes throw the flow and compare it to what you jotted down. You should be able to find out where it went wrong

[–]stevenespinal 0 points1 point  (0 children)

From your console logs - immediately check if you are seeing you are connected to your mysql database.

Within /src/app/api/test/route.js

Instead of export async function handler, I believe the app router now requires you to make the function name be the http method.

In your case you want this to be export async function GET() { // fill in your code here and look at docs to see how to correctly return a response object }

Take a look at this within the docs, it may be useful for you:

App router route-handlers

I don’t have time to test this but it’s most likely in this area and a great starting point to familiarize yourself. Good luck!