Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. palrogg
P

palrogg

@palrogg

Chat Follow Unfollow
0
Reputation
4
Posts
1.6k
Profile views
0
Followers
0
Following
Joined 19 Jul 2019, 20:25 Last Online 13 Sept 2019, 07:31

  • Profile
  • More
    • Continue chat with palrogg
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
palrogg Follow

Posts made by palrogg

RE: Auth which fail from time to time?

It worked, thank you so much! Solved.
I spent so much time on this...

posted in Questions & Help • 19 Aug 2019, 18:17
RE: Auth which fail from time to time?

Update: it didn’t change anything... If someone has a clue, I'd be very grateful!

posted in Questions & Help • 24 Jul 2019, 10:02
RE: Auth which fail from time to time?

Hi Endel, thank you for your reply!

I had 0.10.6 and I just upgraded to 0.10.9, no change... But I use Colyseus-unity3d, maybe there's a problem there. Here is the client-side code where the error occurs, in Colyseus/Auth.cs:

screenshot

The error happens at line 271, but I'm wondering if it may be come from the way the device id gets generated... I'll give it a try tomorrow. Cheers!

posted in Questions & Help • 19 Jul 2019, 21:17
Auth which fail from time to time?

Hello,

Is it just me, or do you also have troubles with the Auth.cs plugin?

Sometimes it works perfectly, sometimes I get a 401 from my server (either locally or externally). Both my local and my remote server logs “invalid signature“.

This log seems to come from verify.js lines 126-134:
valid = jws.verify(jwtString, decodedToken.header.alg, secretOrPublicKey);
[…]
if (!valid) {
return done(new JsonWebTokenError('invalid signature'));
}

I didn't change anything to my code, my remote host didn't restart the server script for at least two weeks, and when I try even the earliest commits it doesn't solve anything. But when I launch another project I don't work on anymore, the connection succeeds.

I spent quite a lot of time on this. Any help would be appreciated.

Best
Paul

posted in Questions & Help • 19 Jul 2019, 20:38

© 2023 Endel Dreyer