AniCricKet / musical-guacamole

Blog used for AP Computer Science A journey
https://anicricket.github.io/musical-guacamole/
MIT License
0 stars 0 forks source link

Debugging Event #14

Open AniCricKet opened 3 months ago

AniCricKet commented 3 months ago

Testing login without running backend:

image Screenshot 2024-03-07 at 10 35 39 PM Screenshot 2024-03-07 at 10 39 34 PM

Testing with breakpoints:

Screenshot 2024-03-07 at 10 43 42 PM Screenshot 2024-03-07 at 10 45 10 PM Screenshot 2024-03-07 at 10 48 16 PM

After stepping through it and stopping at the breakpoints, I realized that the problem is it isn't able to fetch anything from the backend because it isn't running. So now let's test with the backend running in debug mode:

Screenshot 2024-03-07 at 10 48 57 PM

After testing I see that it's a 404 error. This is because the allowed origins doesn't include all the endpoints that it should.

Screenshot 2024-03-07 at 10 49 51 PM

After updating the allowed origins, let's try running it again.

Screenshot 2024-03-07 at 10 51 41 PM

It's still giving me a 404 error however

Screenshot 2024-03-07 at 10 55 03 PM