Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Todo app won't connect to the database #26

Open
LeonSilva15 opened this issue Jul 22, 2024 · 0 comments
Open

Todo app won't connect to the database #26

LeonSilva15 opened this issue Jul 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LeonSilva15
Copy link
Member

After creating the app, it won't connect to the DB.

Provided log:

Download the React DevTools for a better development experience: https://reactjs.org/link/react-devtools
rest-service.js:10 
        
        
GET http://localhost:5173/api/tasks/ net::ERR_ABORTED 500 (Internal Server Error)
getTasks @ rest-service.js:10
fetchTodos @ TodoList.jsx:34
(anonymous) @ TodoList.jsx:28
commitHookEffectListMount @ react-dom_client.js?v=3098a4ee:16913
commitPassiveMountOnFiber @ react-dom_client.js?v=3098a4ee:18154
commitPassiveMountEffects_complete @ react-dom_client.js?v=3098a4ee:18127
commitPassiveMountEffects_begin @ react-dom_client.js?v=3098a4ee:18117
commitPassiveMountEffects @ react-dom_client.js?v=3098a4ee:18107
flushPassiveEffectsImpl @ react-dom_client.js?v=3098a4ee:19488
flushPassiveEffects @ react-dom_client.js?v=3098a4ee:19445
(anonymous) @ react-dom_client.js?v=3098a4ee:19326
workLoop @ react-dom_client.js?v=3098a4ee:195
flushWork @ react-dom_client.js?v=3098a4ee:174
performWorkUntilDeadline @ react-dom_client.js?v=3098a4ee:382
Show 11 more frames
Show lessUnderstand this error
TodoList.jsx:39 Error fetching tasks: Error: Failed to get tasks
    at getTasks (rest-service.js:15:15)
    at async fetchTodos (TodoList.jsx:34:30)
rest-service.js:10 
        
        
       GET http://localhost:5173/api/tasks/ net::ERR_ABORTED 500 (Internal Server Error)
getTasks @ rest-service.js:10
fetchTodos @ TodoList.jsx:34
(anonymous) @ TodoList.jsx:28
commitHookEffectListMount @ react-dom_client.js?v=3098a4ee:16913
invokePassiveEffectMountInDEV @ react-dom_client.js?v=3098a4ee:18322
invokeEffectsInDev @ react-dom_client.js?v=3098a4ee:19699
commitDoubleInvokeEffectsInDEV @ react-dom_client.js?v=3098a4ee:19684
flushPassiveEffectsImpl @ react-dom_client.js?v=3098a4ee:19501
flushPassiveEffects @ react-dom_client.js?v=3098a4ee:19445
(anonymous) @ react-dom_client.js?v=3098a4ee:19326
workLoop @ react-dom_client.js?v=3098a4ee:195
flushWork @ react-dom_client.js?v=3098a4ee:174
performWorkUntilDeadline @ react-dom_client.js?v=3098a4ee:382
Show 10 more frames
Show lessUnderstand this error
TodoList.jsx:39 Error fetching tasks: Error: Failed to get tasks
    at getTasks (rest-service.js:15:15)
    at async fetchTodos (TodoList.jsx:34:30)
@LeonSilva15 LeonSilva15 added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant