HISE Logo Forum
    • Categories
    • Register
    • Login

    Customer hitting a lot of connection errors with my manager application

    Scheduled Pinned Locked Moved General Questions
    27 Posts 3 Posters 576 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by ustk

      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
      		}
      	});
      }
      

      Can't help pressing F5 in the forum...

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @ustk
        last edited by

        @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.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        ustkU orangeO 2 Replies Last reply Reply Quote 0
        • ustkU
          ustk @d.healey
          last edited by

          @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 the status is ok...

          Can't help pressing F5 in the forum...

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @ustk
            last edited by

            @ustk I didn't even realise we had that StatusOk constant, very helpful.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @d.healey
              last edited by

              @d-healey maybe I should try to switch to the same plugin as yours to see if I get less tickets...

              Can't help pressing F5 in the forum...

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @ustk
                last edited by

                @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 :)

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                ustkU 2 Replies Last reply Reply Quote 0
                • ustkU
                  ustk @d.healey
                  last edited by

                  @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!

                  Can't help pressing F5 in the forum...

                  1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey I have something like a 10% error ratio 😬
                    Server, perhaps?

                    Can't help pressing F5 in the forum...

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @ustk
                      last edited by

                      @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?

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey O2Switch, and no I am not able to replicate the same error.

                        Can't help pressing F5 in the forum...

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @ustk
                          last edited by

                          @ustk Is that shared hosting?

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          ustkU 1 Reply Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by

                            @d-healey yeah o2switch is a shared hosting

                            Can't help pressing F5 in the forum...

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @ustk
                              last edited by

                              @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.

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              ustkU 1 Reply Last reply Reply Quote 1
                              • ustkU
                                ustk @d.healey
                                last edited by

                                @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 😉

                                Can't help pressing F5 in the forum...

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @ustk
                                  last edited by

                                  @ustk Do you have error logs from the server?

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  ustkU 1 Reply Last reply Reply Quote 0
                                  • ustkU
                                    ustk @d.healey
                                    last edited by

                                    @d-healey A few old errors, but nothing in the last 24h (the last login issue case was 11h ago)

                                    Can't help pressing F5 in the forum...

                                    ustkU 1 Reply Last reply Reply Quote 0
                                    • ustkU
                                      ustk @ustk
                                      last edited by

                                      @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?

                                      Can't help pressing F5 in the forum...

                                      d.healeyD 1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey @ustk
                                        last edited by

                                        @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?

                                        Libre Wave - Freedom respecting instruments and effects
                                        My Patreon - HISE tutorials
                                        YouTube Channel - Public HISE tutorials

                                        ustkU 1 Reply Last reply Reply Quote 0
                                        • ustkU
                                          ustk @d.healey
                                          last edited by

                                          @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.

                                          Can't help pressing F5 in the forum...

                                          d.healeyD 1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey @ustk
                                            last edited by

                                            @ustk I think that's coincidence, but maybe there's a connection

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

                                            ustkU 3 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            14

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.1k

                                            Posts