Customer hitting a lot of connection errors with my manager application
-
So I get quit some support tickets from people not being able to login to their account using my manager app.
I just use the standard JWT Authentication in Wordpress
Does anyone use the pro version? Would it help for anything?From the log they send to me, they're hitting a
Server.StatusOK = false
("Impossible to login...")and here's the connection code:
anything obvious?inline function login() { Server.setBaseURL(BASE_URL); Log.add("Reaching customer account...", "default"); Server.setHttpHeader(""); local parameters = {"username": usernameInputLbl.getValue(), "password": passwordInputLbl.getValue()}; Server.callWithPOST("wp-json/jwt-auth/v1/token", parameters, function(status, response) { user = response; //Console.print(trace(response)); if (status == Server.StatusOK) { Log.add("Successfully connected", "success"); connected = true; selectMainPanelToShow(gridPnl); connectedUserLbl.set("text", user.user_nicename + "\n" + user.user_email); connectionPnl.showControl(false); disconnectionPnl.showControl(true); getAllProducts(); pasteLicenseBtn.set("enabled", true); keyInputLbl.set("enabled", true); keyInputLbl.set("text", "enter/paste a license key"); for (b in showProductBtns) b.set("enabled", true); SESSION_TIMER.startTimer(3600000); // 1h } else { connected = false; Log.add("Impossible to login...", "warning"); // LANDING HERE } }); }
-
@ustk said in Customer hitting a lot of connection errors with my manager application:
Does anyone use the pro version? Would it help for anything?
There's a pro version? What plugin are you using? I use this one.
You function looks ok to me, this is mine.
-
@d-healey Thanks Dave, I am using this one:
https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/The structure is basically the same except I am not testing
isDefined(response.data.token)
, but I can't think it could not be present if thestatus
is ok... -
@ustk I didn't even realise we had that
StatusOk
constant, very helpful. -
@d-healey maybe I should try to switch to the same plugin as yours to see if I get less tickets...
-
@ustk I was using the plugin you're using, but then it was forked and improved for the one I'm using now, but now I think the one you're using has been improved too, but I'll stick with the free one - long way of saying I don't think it will make a difference either :)
-
@d-healey yeah I guess the API hook wouldn't made much difference... But, then I wonder why I get as many complaints since I am just beginning distributing my plugins... I'am afraid for when I'll have way more customers, an extrapolation will quickly give me several of those tickets a day!
-
@d-healey I have something like a 10% error ratio
Server, perhaps? -
@ustk said in Customer hitting a lot of connection errors with my manager application:
Server, perhaps?
Could be, who's your hosting provider?
Are you able to recreate the issue yourself?
-
@d-healey O2Switch, and no I am not able to replicate the same error.
-
@ustk Is that shared hosting?
-
@d-healey yeah o2switch is a shared hosting
-
@ustk That could be the bottleneck. I'm using Cloudways, I might have a discount/referral code if you're interested, I'll check in the morning.
-
@d-healey Thanks! It might be the issue, but seeing the small traffic I have at the moment... Or their server really isn't that robust.
I'm afraid to go to the hassle of migrating but, well, if the server is the issu I will have no choice...
I'll see what the support is saying about this -
@ustk Do you have error logs from the server?
-
@d-healey A few old errors, but nothing in the last 24h (the last login issue case was 11h ago)
-
@d-healey Customer just responded. I told him to try to connect to the website account and retry with the manager app, and it worked. And it seems to be something that generally resolve the issue.
Does this ring a bell? -
@ustk said in Customer hitting a lot of connection errors with my manager application:
I told him to try to connect to the website accoun
What do you mean?
-
@d-healey To be sure he checks the credentials are working when logging in their account online.
Then if succeed, try again the manager app. -
@ustk I think that's coincidence, but maybe there's a connection