HISE Logo Forum
    • Categories
    • Register
    • Login

    License Manager (Wordpress) Deactivation help

    Scheduled Pinned Locked Moved Scripting
    11 Posts 4 Posters 149 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.
    • DanHD
      DanH
      last edited by

      Is anyone using https://licensemanager.at/ and successfully deactivating licenses? I'm having trouble getting the activation token out of my license file and sending that to the server for deactivation.

      Thanks!

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @DanH
        last edited by

        Trying to bash through this with their tech support and ChatGBT 🤦♂

        Does anyone know if HISE supports sending custom headers — apparently not all HISE builds can send an Authorization header in Server.callWithGET().

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @DanH
          last edited by

          @DanH Call this before the GET call:

          https://docs.hise.audio/scripting/scripting-api/server/index.html#sethttpheader

          DanHD It_UsedI 2 Replies Last reply Reply Quote 1
          • DanHD
            DanH @Christoph Hart
            last edited by

            @Christoph-Hart Thanks. I'm getting an instant failure (status 0), I don't think the server call is being sent, Hise stops it before that point. Would you mind glancing over the code please?

            function deactivateLicense(licenseKey)
                {
                    Console.print("DEACTIVATING... " + licenseKey);
            
                    // Get token
                    var token = LicenseManager.getActivationToken();
                    if (token != "")
                        Console.print("Using token: " + token);
                    else
                        Console.print("No token found.");
            
                    // Build URL
                    var url = "https://dhplugins.com/wp-json/lmfwc/v2/licenses/deactivate/" + licenseKey;
                    if (token != "")
                        url += "?token=" + token;
            
                    Console.print("Final URL: " + url);
            
            // Set Authorization header (HISE requires this BEFORE the call)
            Server.setHttpHeader("Authorization: Basic myBase64Encoded String");
            
            Server.callWithGET(url, {}, function(status, response)
            {
                Console.print("---- SERVER RESPONSE ----");
                Console.print("Status: " + status);
                if (response == undefined)
                    Console.print("Response undefined. Check network or timeout.");
                else
                    Console.print("Raw response object: " + response);
            
                if (response != undefined && response.success)
                {
                    Console.print("Deactivation successful!");
                    Activation.showSuccess("DEACTIVATION SUCCESSFUL");
                    GlobalMute.setBypassed(0);
                    LicenseManager.deleteLicenseFile();
                }
                else
                {
                    var msg = (response != undefined && response.message != undefined)
                              ? response.message
                              : "DEACTIVATION FAILED. PLEASE CONTACT SUPPORT.";
                    Activation.showError(msg);
                    Activation.resetControls();
                    Console.print("Deactivation failed: " + msg);
                }
            });
            
                }
            

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • It_UsedI
              It_Used @Christoph Hart
              last edited by It_Used

              @Christoph-Hart I apologize for my arrogance and persistence, please pay attention to this bug, I can't release my instrument because of this bug :(
              This bug alive from 2022 :(
              Sorry again!
              I just don't know who to contact, I tried to fix it manually, but apparently I didn't figure out the code base, and I probably touched the wrong thing:(

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @It_Used
                last edited by

                @It_Used why not create a new Forum post?

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                It_UsedI 1 Reply Last reply Reply Quote 0
                • It_UsedI
                  It_Used @DanH
                  last edited by It_Used

                  @DanH I created it, and even threw it into the Github repository issue, I see there has been a post here since 2022, and no one has watched my post. I know how annoying it is, I would never do such a thing, I write out of desperation. So I'm sorry again.

                  1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff @DanH
                    last edited by

                    @DanH @Christoph-Hart
                    What OS are you testing on? I have a user on Yosemite 10.10.5 that's getting a "Status 0" reply from our server, but can login/activate/deactivate my older plugs. Thinking maybe something with a recent commit.
                    Might be related?

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    DanHD 1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @Dan Korneff
                      last edited by

                      @Dan-Korneff Sequoia. I can activate fine, even deactivate - but it sets activations to zero because I'm not doing it right...

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      Christoph HartC 1 Reply Last reply Reply Quote 0
                      • Christoph HartC
                        Christoph Hart @DanH
                        last edited by

                        I apologize for my arrogance and persistence

                        It's fixed now but please refrain from cross posting your problems in the future.

                        It_UsedI 1 Reply Last reply Reply Quote 3
                        • It_UsedI
                          It_Used @Christoph Hart
                          last edited by It_Used

                          @Christoph-Hart Thanks, I just don't know how to make my problem noticed, it doesn't bother me, but I had no other way out. I could write to you in private messages, but that's even worse than doing it in another post. I heard you, thanks again, and sorry again!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          23

                          Online

                          2.0k

                          Users

                          12.8k

                          Topics

                          111.1k

                          Posts