mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-02-04 03:30:26 +01:00
fernandwss
This commit is contained in:
parent
f2878b3a5e
commit
1932de28cb
@ -1,53 +0,0 @@
|
||||
:8080/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
game.js:3 DOM fully loaded and parsed
|
||||
game.js:43 DOM elements initialized
|
||||
game.js:118 checkUserExists called with username: v
|
||||
game.js:134 User existence check response: {exists: false}
|
||||
game.js:143 handleRegister called
|
||||
game.js:148 Nickname: v
|
||||
game.js:149 Password: v
|
||||
game.js:150 Confirm Password: v
|
||||
game.js:154 Attempting to register user: v
|
||||
game.js:156 Register result: {registered: true, token: '7ab181bc-7bf7-4ac0-a562-23e1c455ca23'}
|
||||
game.js:160 Token stored: 7ab181bc-7bf7-4ac0-a562-23e1c455ca23
|
||||
game.js:161 User registered successfully
|
||||
game.js:166 ChatManager initialized: null
|
||||
game.js:168 Initializing ChatManager with username: v and token: 7ab181bc-7bf7-4ac0-a562-23e1c455ca23
|
||||
game.js:732 ChatManager initialized for user: v
|
||||
game.js:170 ChatManager initialized: ChatManager {username: 'v', token: '7ab181bc-7bf7-4ac0-a562-23e1c455ca23', roomSockets: {…}, blockedUsers: Array(0), activeRoom: null, …}
|
||||
game.js:173 chatManager is defined: ChatManager {username: 'v', token: '7ab181bc-7bf7-4ac0-a562-23e1c455ca23', roomSockets: {…}, blockedUsers: Array(0), activeRoom: null, …}
|
||||
game.js:178 Joining room: main_room
|
||||
game.js:983 Joining room: main_room with username: v and token: 7ab181bc-7bf7-4ac0-a562-23e1c455ca23
|
||||
game.js:991 Joining new room: main_room
|
||||
game.js:910 createRoomTab: main_room with username: v and token: 7ab181bc-7bf7-4ac0-a562-23e1c455ca23
|
||||
game.js:920 Tab for room main_room already exists.
|
||||
game.js:933 Showing tab for room: main_room
|
||||
game.js:747 Initializing chat WebSocket...
|
||||
game.js:748 Initializing chat WebSocket for room: main_room with username: v
|
||||
game.js:753 startChatWebSocket: main_room with username: v and token: 7ab181bc-7bf7-4ac0-a562-23e1c455ca23
|
||||
game.js:1012 ChatInput initialized for room: main_room, username: v
|
||||
game.js:945 Attempting to switch to room: main_room
|
||||
game.js:951 Switching from room null to room main_room
|
||||
game.js:759 WebSocket ouvert pour l'utilisateur v dans la room main_room
|
||||
game.js:767 Authentication message sent for room: main_room with username: v
|
||||
game.js:773 Message received from server in room main_room: {type: 'chat_message', username: 'v', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:798 Message displayed in chat log for room: main_room
|
||||
game.js:773 Message received from server in room main_room: {type: 'chat_message', username: 'f', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:798 Message displayed in chat log for room: main_room
|
||||
game.js:1019 Enter key pressed, attempting to send message...
|
||||
game.js:1032 Attempting to send message: /s f
|
||||
game.js:1045 Detected stats command for user: f
|
||||
game.js:677 Fetching stats for user: f
|
||||
game.js:1057 Message input cleared.
|
||||
game.js:680
|
||||
|
||||
|
||||
POST http://172.31.141.12:8080/game_server/get_player_stats/ 404 (Not Found)
|
||||
fetchPlayerStatsFromGameServer @ game.js:680
|
||||
sendMessage @ game.js:1046
|
||||
(anonymous) @ game.js:1020
|
||||
game.js:689 Failed to fetch stats for f. HTTP error! Status: 404
|
||||
fetchPlayerStatsFromGameServer @ game.js:689
|
||||
await in fetchPlayerStatsFromGameServer
|
||||
sendMessage @ game.js:1046
|
||||
(anonymous) @ game.js:1020
|
||||
@ -1,41 +0,0 @@
|
||||
:8080/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
game.js:3 DOM fully loaded and parsed
|
||||
game.js:43 DOM elements initialized
|
||||
game.js:118 checkUserExists called with username: g
|
||||
game.js:134 User existence check response: {exists: true}
|
||||
game.js:224 Initializing ChatManager...
|
||||
game.js:732 ChatManager initialized for user: g
|
||||
game.js:983 Joining room: main_room with username: g and token: 458f5428-2c48-4dbe-b126-815da541e7fb
|
||||
game.js:991 Joining new room: main_room
|
||||
game.js:910 createRoomTab: main_room with username: g and token: 458f5428-2c48-4dbe-b126-815da541e7fb
|
||||
game.js:920 Tab for room main_room already exists.
|
||||
game.js:933 Showing tab for room: main_room
|
||||
game.js:747 Initializing chat WebSocket...
|
||||
game.js:748 Initializing chat WebSocket for room: main_room with username: g
|
||||
game.js:753 startChatWebSocket: main_room with username: g and token: 458f5428-2c48-4dbe-b126-815da541e7fb
|
||||
game.js:1012 ChatInput initialized for room: main_room, username: g
|
||||
game.js:945 Attempting to switch to room: main_room
|
||||
game.js:951 Switching from room null to room main_room
|
||||
game.js:759 WebSocket ouvert pour l'utilisateur g dans la room main_room
|
||||
game.js:767 Authentication message sent for room: main_room with username: g
|
||||
game.js:773 Message received from server in room main_room: {type: 'chat_message', username: 'g', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:798 Message displayed in chat log for room: main_room
|
||||
game.js:773 Message received from server in room main_room: {type: 'chat_message', username: 'h', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:798 Message displayed in chat log for room: main_room
|
||||
game.js:1019 Enter key pressed, attempting to send message...
|
||||
game.js:1032 Attempting to send message: /s h
|
||||
game.js:1045 Detected stats command for user: h
|
||||
game.js:677 Fetching stats for user: h
|
||||
game.js:1057 Message input cleared.
|
||||
game.js:680
|
||||
|
||||
|
||||
POST http://172.31.141.12:8080/get_player_stats/ 404 (Not Found)
|
||||
fetchPlayerStatsFromGameServer @ game.js:680
|
||||
sendMessage @ game.js:1046
|
||||
(anonymous) @ game.js:1020
|
||||
game.js:689 Failed to fetch stats for h. HTTP error! Status: 404
|
||||
fetchPlayerStatsFromGameServer @ game.js:689
|
||||
await in fetchPlayerStatsFromGameServer
|
||||
sendMessage @ game.js:1046
|
||||
(anonymous) @ game.js:1020
|
||||
@ -1,6 +0,0 @@
|
||||
get_player_stats/:1
|
||||
|
||||
|
||||
GET http://172.31.141.12:8080/get_player_stats/ 405 (Method Not Allowed)
|
||||
get_player_stats/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
get_player_stats/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
@ -1,33 +0,0 @@
|
||||
:8080/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
game.js:3 DOM fully loaded and parsed
|
||||
game.js:43 DOM elements initialized
|
||||
game.js:118 checkUserExists called with username: vv
|
||||
game.js:134 User existence check response: {exists: true}
|
||||
game.js:224 Initializing ChatManager...
|
||||
game.js:748 ChatManager initialized for user: vv
|
||||
game.js:999 Joining room: main_room with username: vv and token: 51edbeca-570d-4536-b81d-4eaa64051300
|
||||
game.js:1007 Joining new room: main_room
|
||||
game.js:926 createRoomTab: main_room with username: vv and token: 51edbeca-570d-4536-b81d-4eaa64051300
|
||||
game.js:936 Tab for room main_room already exists.
|
||||
game.js:949 Showing tab for room: main_room
|
||||
game.js:763 Initializing chat WebSocket...
|
||||
game.js:764 Initializing chat WebSocket for room: main_room with username: vv
|
||||
game.js:769 startChatWebSocket: main_room with username: vv and token: 51edbeca-570d-4536-b81d-4eaa64051300
|
||||
game.js:1042 ChatInput initialized for room: main_room, username: vv
|
||||
game.js:961 Attempting to switch to room: main_room
|
||||
game.js:967 Switching from room null to room main_room
|
||||
game.js:775 WebSocket ouvert pour l'utilisateur vv dans la room main_room
|
||||
game.js:783 Authentication message sent for room: main_room with username: vv
|
||||
game.js:789 Message received from server in room main_room: {type: 'chat_message', username: 'vv', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:814 Message displayed in chat log for room: main_room
|
||||
game.js:1049 Enter key pressed, attempting to send message...
|
||||
game.js:1062 Attempting to send message: /s v
|
||||
game.js:1075 Detected stats command for user: v
|
||||
game.js:721 Player stats not loaded yet. Fetching all player stats...
|
||||
game.js:1087 Message input cleared.
|
||||
game.js:708 All player stats received: {players: Array(0)}
|
||||
game.js:732 Player with username v not found.
|
||||
getPlayerStatsByUsername @ game.js:732
|
||||
await in getPlayerStatsByUsername
|
||||
sendMessage @ game.js:1076
|
||||
(anonymous) @ game.js:1050
|
||||
@ -1,47 +0,0 @@
|
||||
:8080/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
game.js:3 DOM fully loaded and parsed
|
||||
game.js:43 DOM elements initialized
|
||||
game.js:118 checkUserExists called with username: x
|
||||
game.js:134 User existence check response: {exists: false}
|
||||
game.js:143 handleRegister called
|
||||
game.js:148 Nickname: x
|
||||
game.js:149 Password: x
|
||||
game.js:150 Confirm Password: x
|
||||
game.js:154 Attempting to register user: x
|
||||
game.js:156 Register result: {registered: true, token: '7dfe4c69-eaf0-49ca-b914-3f69bc9dda57'}
|
||||
game.js:160 Token stored: 7dfe4c69-eaf0-49ca-b914-3f69bc9dda57
|
||||
game.js:161 User registered successfully
|
||||
game.js:166 ChatManager initialized: null
|
||||
game.js:168 Initializing ChatManager with username: x and token: 7dfe4c69-eaf0-49ca-b914-3f69bc9dda57
|
||||
game.js:753 ChatManager initialized for user: x
|
||||
game.js:170 ChatManager initialized: ChatManager {username: 'x', token: '7dfe4c69-eaf0-49ca-b914-3f69bc9dda57', roomSockets: {…}, blockedUsers: Array(0), activeRoom: null, …}
|
||||
game.js:173 chatManager is defined: ChatManager {username: 'x', token: '7dfe4c69-eaf0-49ca-b914-3f69bc9dda57', roomSockets: {…}, blockedUsers: Array(0), activeRoom: null, …}
|
||||
game.js:178 Joining room: main_room
|
||||
game.js:1018 Joining room: main_room with username: x and token: 7dfe4c69-eaf0-49ca-b914-3f69bc9dda57
|
||||
game.js:1026 Joining new room: main_room
|
||||
game.js:945 createRoomTab: main_room with username: x and token: 7dfe4c69-eaf0-49ca-b914-3f69bc9dda57
|
||||
game.js:955 Tab for room main_room already exists.
|
||||
game.js:968 Showing tab for room: main_room
|
||||
game.js:782 Initializing chat WebSocket...
|
||||
game.js:783 Initializing chat WebSocket for room: main_room with username: x
|
||||
game.js:788 startChatWebSocket: main_room with username: x and token: 7dfe4c69-eaf0-49ca-b914-3f69bc9dda57
|
||||
game.js:1061 ChatInput initialized for room: main_room, username: x
|
||||
game.js:980 Attempting to switch to room: main_room
|
||||
game.js:986 Switching from room null to room main_room
|
||||
game.js:794 WebSocket ouvert pour l'utilisateur x dans la room main_room
|
||||
game.js:802 Authentication message sent for room: main_room with username: x
|
||||
game.js:808 Message received from server in room main_room: {type: 'chat_message', username: 'x', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:833 Message displayed in chat log for room: main_room
|
||||
game.js:808 Message received from server in room main_room: {type: 'chat_message', username: 'w', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:833 Message displayed in chat log for room: main_room
|
||||
game.js:1068 Enter key pressed, attempting to send message...
|
||||
game.js:1081 Attempting to send message: /s w
|
||||
game.js:1094 Detected stats command for user: w
|
||||
game.js:660 Detected stats command for user: w
|
||||
game.js:663 Uncaught ReferenceError: fetchPlayers is not defined
|
||||
at sendStatsCommand (game.js:663:6)
|
||||
at ChatInput.sendMessage (game.js:1095:6)
|
||||
at HTMLInputElement.<anonymous> (game.js:1069:11)
|
||||
sendStatsCommand @ game.js:663
|
||||
sendMessage @ game.js:1095
|
||||
(anonymous) @ game.js:1069
|
||||
@ -1,46 +0,0 @@
|
||||
:8080/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
game.js:3 DOM fully loaded and parsed
|
||||
game.js:43 DOM elements initialized
|
||||
game.js:118 checkUserExists called with username: g
|
||||
game.js:134 User existence check response: {exists: true}
|
||||
game.js:224 Initializing ChatManager...
|
||||
game.js:765 ChatManager initialized for user: g
|
||||
game.js:1030 Joining room: main_room with username: g and token: 458f5428-2c48-4dbe-b126-815da541e7fb
|
||||
game.js:1038 Joining new room: main_room
|
||||
game.js:957 createRoomTab: main_room with username: g and token: 458f5428-2c48-4dbe-b126-815da541e7fb
|
||||
game.js:967 Tab for room main_room already exists.
|
||||
game.js:980 Showing tab for room: main_room
|
||||
game.js:794 Initializing chat WebSocket...
|
||||
game.js:795 Initializing chat WebSocket for room: main_room with username: g
|
||||
game.js:800 startChatWebSocket: main_room with username: g and token: 458f5428-2c48-4dbe-b126-815da541e7fb
|
||||
game.js:1073 ChatInput initialized for room: main_room, username: g
|
||||
game.js:992 Attempting to switch to room: main_room
|
||||
game.js:998 Switching from room null to room main_room
|
||||
game.js:806 WebSocket ouvert pour l'utilisateur g dans la room main_room
|
||||
game.js:814 Authentication message sent for room: main_room with username: g
|
||||
game.js:820 Message received from server in room main_room: {type: 'chat_message', username: 'g', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:845 Message displayed in chat log for room: main_room
|
||||
game.js:820 Message received from server in room main_room: {type: 'chat_message', username: 'h', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:845 Message displayed in chat log for room: main_room
|
||||
game.js:820 Message received from server in room main_room: {type: 'chat_message', username: 'h', message: 'ggg', room: 'main_room'}
|
||||
game.js:845 Message displayed in chat log for room: main_room
|
||||
game.js:1080 Enter key pressed, attempting to send message...
|
||||
game.js:1093 Attempting to send message: /s h
|
||||
game.js:1106 Detected stats command for user: h
|
||||
game.js:672 Detected stats command for user: h
|
||||
game.js:659 Fetching players...
|
||||
game.js:675 Uncaught TypeError: Cannot read properties of undefined (reading 'then')
|
||||
at sendStatsCommand (game.js:675:20)
|
||||
at ChatInput.sendMessage (game.js:1107:6)
|
||||
at HTMLInputElement.<anonymous> (game.js:1081:11)
|
||||
sendStatsCommand @ game.js:675
|
||||
sendMessage @ game.js:1107
|
||||
(anonymous) @ game.js:1081
|
||||
game.js:667 Error fetching match data: ReferenceError: displayPlayers is not defined
|
||||
at game.js:664:21
|
||||
(anonymous) @ game.js:667
|
||||
Promise.catch
|
||||
fetchPlayers @ game.js:667
|
||||
sendStatsCommand @ game.js:675
|
||||
sendMessage @ game.js:1107
|
||||
(anonymous) @ game.js:1081
|
||||
@ -1,37 +0,0 @@
|
||||
:8080/:1 The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
|
||||
game.js:3 DOM fully loaded and parsed
|
||||
game.js:43 DOM elements initialized
|
||||
game.js:118 checkUserExists called with username: h
|
||||
game.js:134 User existence check response: {exists: true}
|
||||
game.js:224 Initializing ChatManager...
|
||||
game.js:753 ChatManager initialized for user: h
|
||||
game.js:1018 Joining room: main_room with username: h and token: 27cda257-bf3c-4523-82e3-28bafd5a6ad2
|
||||
game.js:1026 Joining new room: main_room
|
||||
game.js:945 createRoomTab: main_room with username: h and token: 27cda257-bf3c-4523-82e3-28bafd5a6ad2
|
||||
game.js:955 Tab for room main_room already exists.
|
||||
game.js:968 Showing tab for room: main_room
|
||||
game.js:782 Initializing chat WebSocket...
|
||||
game.js:783 Initializing chat WebSocket for room: main_room with username: h
|
||||
game.js:788 startChatWebSocket: main_room with username: h and token: 27cda257-bf3c-4523-82e3-28bafd5a6ad2
|
||||
game.js:1061 ChatInput initialized for room: main_room, username: h
|
||||
game.js:980 Attempting to switch to room: main_room
|
||||
game.js:986 Switching from room null to room main_room
|
||||
game.js:794 WebSocket ouvert pour l'utilisateur h dans la room main_room
|
||||
game.js:802 Authentication message sent for room: main_room with username: h
|
||||
game.js:808 Message received from server in room main_room: {type: 'chat_message', username: 'h', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:833 Message displayed in chat log for room: main_room
|
||||
game.js:808 Message received from server in room main_room: {type: 'chat_message', username: 't', message: 'Authentication successful', room: 'main_room'}
|
||||
game.js:833 Message displayed in chat log for room: main_room
|
||||
game.js:1068 Enter key pressed, attempting to send message...
|
||||
game.js:1081 Attempting to send message: /s t
|
||||
game.js:1094 Detected stats command for user: t
|
||||
game.js:660 Detected stats command for user: t
|
||||
burger.js:79 Fetching players...
|
||||
game.js:663 Uncaught TypeError: Cannot read properties of undefined (reading 'then')
|
||||
at sendStatsCommand (game.js:663:20)
|
||||
at ChatInput.sendMessage (game.js:1095:6)
|
||||
at HTMLInputElement.<anonymous> (game.js:1069:11)
|
||||
sendStatsCommand @ game.js:663
|
||||
sendMessage @ game.js:1095
|
||||
(anonymous) @ game.js:1069
|
||||
burger.js:136 Displaying players:
|
||||
File diff suppressed because it is too large
Load Diff
1826
logs/django.log
1826
logs/django.log
File diff suppressed because it is too large
Load Diff
@ -471,7 +471,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
console.warn('WebSocket connection already open. Closing and recreating a new one.');
|
||||
socket.close(); // Fermer le socket ouvert
|
||||
}*/
|
||||
socket = new WebSocket(`ws://${window.location.host}/ws/game/`);
|
||||
socket = new WebSocket(`wss://${window.location.host}/ws/game/`);
|
||||
|
||||
socket.onopen = function (event) {
|
||||
console.log('WebSocket connection established');
|
||||
@ -774,7 +774,7 @@ function filterPlayers(targetUser, players) {
|
||||
console.log(`Initializing chat WebSocket for room: ${roomName} with username: ${this.username}`);
|
||||
|
||||
try {
|
||||
this.chatSocket = new WebSocket(`ws://${window.location.host}/ws/chat/${roomName}/`);
|
||||
this.chatSocket = new WebSocket(`wss://${window.location.host}/ws/chat/${roomName}/`);
|
||||
this.roomSockets[roomName] = this.chatSocket; // Stockage du WebSocket
|
||||
console.log(`startChatWebSocket: ${roomName} with username: ${this.username} and token: ${this.token}`);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user