buxx / rolling

Adventure, survival and cooperation role-game engine.
GNU Affero General Public License v3.0
17 stars 1 forks source link

Random crash on requests #69

Closed buxx closed 2 years ago

buxx commented 3 years ago

Some times, rollgui crash:

Describe with url https://rolling-server.bux.fr:443/_describe/character/32a8d1dbf56740dd97da4813a297e136/on_place_actions
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Request, url: "https://rolling-server.bux.fr/_describe/character/32a8d1dbf56740dd97da4813a297e136/on_place_actions", source: hyper::Error(IncompleteMessage) }', src/server/client.rs:411:18

But no error on server side:

2021-03-04 14:45:35,031|server|INFO: 127.0.0.1 [04/Mar/2021:14:45:34 +0000] "POST /_describe/character/32a8d1dbf56740dd97da4813a297e136/on_p
lace_actions HTTP/1.1" 200 30027 "-" "-"
2021-03-04 14:45:35,031|server|DEBUG: Receive message on websocket for world: WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"ANIMATED_CO
RPSE_MOVE","world_row_i":1,"world_col_i":3,"data":{"to_row_i":51,"to_col_i":8,"animated_corpse_id":4}}', extra='')
2021-03-04 14:45:35,063|server|DEBUG: {"type":"ANIMATED_CORPSE_MOVE","world_row_i":1,"world_col_i":3,"data":{"animated_corpse_id":4,"to_row_
i":51,"to_col_i":8}}
2021-03-04 14:45:35,147|server|DEBUG: Receive message on websocket for zone 3,2: WSMessage(type=<WSMsgType.TEXT: 1>, data='{"type":"CLIENT_W
ANT_CLOSE","data":null}', extra='')
2021-03-04 14:45:35,147|server|DEBUG: remove websocket (3,2)
2021-03-04 14:45:35,193|server|DEBUG: websocket (3,2) seems cancelled
2021-03-04 14:45:35,193|server|DEBUG: remove websocket (3,2)
2021-03-04 14:45:35,194|server|INFO: 127.0.0.1 [04/Mar/2021:14:45:25 +0000] "GET /zones/3/2/events?character_id=32a8d1dbf56740dd97da4813a297
e136&token=k6uzgqNh0miW0YEjY4DRugAiz3MzcUtd HTTP/1.1" 101 0 "-" "-"

Why ? Implement retry on rollgui ?

buxx commented 3 years ago

An other occurence:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Request, url: "https://rolling-server.bux.fr/character/32a8d1dbf56740dd97da4813a297e136/with-resource-action/TRANSFORM_RESOURCES_TO_RESOURCES/ANIMAL_SKIN/MAKE_LEATHER_PIECE?quantity=1", source: hyper::Error(IncompleteMessage) }', src/server/client.rs:411:18
buxx commented 3 years ago

See https://github.com/hyperium/hyper/issues/2136

buxx commented 3 years ago

probably fixed with https://github.com/buxx/rollgui/commit/73657f0291a3e537dda2df2d04d8519ea1bd109b