License Manager (Wordpress) Deactivation help
-
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(). -
@DanH Call this before the GET call:
https://docs.hise.audio/scripting/scripting-api/server/index.html#sethttpheader
-
@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); } }); } -
@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:( -
@It_Used why not create a new Forum post?
-
-
@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 Sequoia. I can activate fine, even deactivate - but it sets activations to zero because I'm not doing it right...
-
I apologize for my arrogance and persistence
It's fixed now but please refrain from cross posting your problems in the future.
-
@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!