lobbies.setClosed doesn't work?

In my game server I've made a game start function that can be executed before the maximum number of lobby players is reached, so I make a :
await Rivet.matchmaker.lobbies.setClosed({"is_closed": true})
refuse_new_connections(true)
await Rivet.matchmaker.lobbies.setClosed({"is_closed": true})
refuse_new_connections(true)
This closes the server, but if I try to play on another client, the matchmaker keeps redirecting me to the closed server. Is this normal?
12 Replies
AngelOnFira
AngelOnFira•2y ago
This is odd indeed Is the request to setClosed returning 200? If so, can you send me the ray id from that request?
Noiros
NoirosOP•2y ago
I just tested, it returns this: { "code": "API_NOT_FOUND", "message": "The requested endpoint was not found.", "ray_id": "a21d4e6e-f34f-4cae-827c-7221ad75ed7e", "documentation": "https://rivet.gg/docs/general/errors/api/not-found" } Oh, just found the problem
Noiros
NoirosOP•2y ago
In the documentation, the request looks like this
No description
Noiros
NoirosOP•2y ago
and in the godot plugin, it looks like this
No description
AngelOnFira
AngelOnFira•2y ago
Oh jeez, ya that's totally my bad Let me cut a release quick, thanks for pointing that out!
Noiros
NoirosOP•2y ago
No problem, Thanks ^^ I've just tested it, no more problem 👌
Noiros
NoirosOP•2y ago
thanks! i'll download it
AngelOnFira
AngelOnFira•2y ago
btw I checked out your devlogs for Endless Adventure, that's looking super cool :gdflame: you should make more!
Noiros
NoirosOP•2y ago
Thanks 😊, We'd love to, but we've had to prioritize our other Object Wars project. That's why i'm here - we had our own matchmaking solution, but it wasn't as reliable as yours. 😅
AngelOnFira
AngelOnFira•2y ago
oooh I'm checking out some videos of it as well, super cool too! Definitely ping me any time you run into anything, I'm happy to get it sorted ASAP :ferristhumbsup:
Noiros
NoirosOP•2y ago
Thanks ^^, I'll do that 👌

Did you find this page helpful?