Closed martin-markovic closed 3 weeks ago
have commented out the unused routes, as there seems to be a conflict in API endpoints. This change has helped narrow down the issue, but I am still in the process of identifying which specific route is causing the conflict. I will update the issue once I have a complete solution or need further assistance.
The 403 Forbidden Error and 400 Bad Request issues have been resolved through the following changes:
socketIo.js
.handleSocketConnection
in socketController.js
.socketController.js
.server.js
.socketConfig.js
module to clean up the codebase.userSocket.js
hook for handling socket initialization based on the URL and user token.Chat.jsx
.chatRoutes.js
and implemented new routes for sending and fetching classroom messages.These changes have resolved the authorization and validation issues, as well as the Socket.io misconfiguration, leading to the successful connection and functionality of the classroom joining process.
With these fixes in place, I am closing this issue.
Errors:
Current Logs: