Jump to content

Trial license manager API changes or problems?


Sumaleth

Recommended Posts

I work for Installatron (a web application auto-installer: http://installatron.com) and we've been installing Blesta since version 3.3.2.

But someone noticed recently that when installing Blesta via Installatron that it wasn't picking up a trial license like it used to. The code looked okay but it was a slightly old version of Blesta (4.2.0) so I added 4.2.2 to see if that solved the problem and it did.

But now a few weeks later I see that 4.2.2 isn't picking up a trial license any longer.

The code we use to retrieve a Blesta trial license from the Blesta website is pretty simple:

	// get trial key
	$lickey = $this->fetch("https://account.blesta.com/plugin/license_manager/trial/", array( "domain" => $this->url_domain ));
	if (empty($lickey))
	{
		$lickey = "";
	}

This will perform a POST http request with the domain property set to the user's domain. I tried it on two of our testing servers without success.

Can anyone see why this might not be working properly or consistently now?

Thanks,

Rowan@Installatron

Link to comment
Share on other sites

4 hours ago, Sumaleth said:

I work for Installatron (a web application auto-installer: http://installatron.com) and we've been installing Blesta since version 3.3.2.

But someone noticed recently that when installing Blesta via Installatron that it wasn't picking up a trial license like it used to. The code looked okay but it was a slightly old version of Blesta (4.2.0) so I added 4.2.2 to see if that solved the problem and it did.

But now a few weeks later I see that 4.2.2 isn't picking up a trial license any longer.

The code we use to retrieve a Blesta trial license from the Blesta website is pretty simple:


	// get trial key
	$lickey = $this->fetch("https://account.blesta.com/plugin/license_manager/trial/", array( "domain" => $this->url_domain ));
	if (empty($lickey))
	{
		$lickey = "";
	}

This will perform a POST http request with the domain property set to the user's domain. I tried it on two of our testing servers without success.

Can anyone see why this might not be working properly or consistently now?

Thanks,

Rowan@Installatron

seems to work fine for me, just tried it on a http api tester I use http://hurl.eu/

are you sure you are doing it as POST? 

as I tried it doing test.com and it returned a license key fine.

all I can tell you to do is talk with @Paul or one of the other blesta developers or just open a ticket here: https://account.blesta.com/client/plugin/support_manager/client_tickets/add/3/

Link to comment
Share on other sites

5 hours ago, timnboys said:

seems to work fine for me, just tried it on a http api tester I use http://hurl.eu/

are you sure you are doing it as POST? 

as I tried it doing test.com and it returned a license key fine.

all I can tell you to do is talk with @Paul or one of the other blesta developers or just open a ticket here: https://account.blesta.com/client/plugin/support_manager/client_tickets/add/3/

Thanks for the reply. Hearing that it works from that API tester gives me some things I can try but if I continue to have trouble with it I'll follow up with your suggestions.

EDIT: we are definitely sending it as a POST request so that's not the problem at least.

Link to comment
Share on other sites

Fetching a trial key will return the same key if one was issued to that hostname within a given (unpublished, subject to change) period of time. This is to prevent people from running trials indefinitely, and never purchasing a license. This means that an expired key could be returned from our system, which would then result in an error within Blesta.

@Sumaleth I have responded to your PM with some more details, that I hope will be helpful.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...