vynx1 / student_csp

A cummilative project consisting of work in my AP Computer Science Principal Class. Acts as a personal blog and storage for various coding projects such as AI Flappy Bird.
MIT License
0 stars 0 forks source link

Debugging #2

Open vynx1 opened 3 months ago

vynx1 commented 3 months ago

Bug 1:

Screenshot 2024-03-07 at 4 56 20 PM

I didn't start the backend server, fixed it by running python3 main.py on the flask server.

Bug 2:

Screenshot 2024-03-07 at 4 57 06 PM

Fetch was linked to the wrong url, fixed it by linking it to the deployed backend website.

Bug 3:

Screenshot 2024-03-07 at 4 58 31 PM

Login was of the wrong type, fixed it by changing it from a GET request to a POST request

Bug 4:

Screenshot 2024-03-07 at 4 59 48 PM

CORS error on the create function, fixed it by allowing cors on the backend and added in a heading.

Bug 5:

Screenshot 2024-03-07 at 5 01 32 PM

Audio was not linking on the frontend properly, fixed It by ensuring the code was fetching the right id for the song

Bug 6:

Screenshot 2024-03-07 at 5 02 30 PM

Backend gave the wrong audio file link to the front end, fixed it by changing the database and making sure the audio file was correct

Bug 7:

Screenshot 2024-03-07 at 5 03 21 PM

Wasn't grabbing the clicked songs id when redirected to a new page, fixed it by making a new function to only display the specfic clicked songs details

Bug 8:

Screenshot 2024-03-07 at 5 03 56 PM

Wasn't storing the clicked songs audioURL, fixed it by adding the url to local storage and retrieving it when redirected to the new page

Bug 9:

Screenshot 2024-03-07 at 5 07 10 PM

Allowed the user to redirect to the song page on the song page itself when it wasn't supposed to be a feature, fixed it by removing the function that played when that button was clicked

Bug 10:

Screenshot 2024-03-07 at 5 17 32 PM

CORS issue when trying to call any of the songs data, fixed it by adding in the header to the songs.model code that allowed it to transfer data.

jm1021 commented 3 months ago

The idea of fixing bugs is cool. However, I never see any backend debugging.