Jump to content

API of license BUG


FRANCISCO MONREAL SEGURA

Recommended Posts

Posted

The license api return incorrect format data tested in last version.

Correct format is 

{"errorCode":0,"errorMessage":"BAD_METHOD"}

where errorCode is a int

But other erros return like this

throw new ApiException( 'MAX_USES', 201 );   ->This code is in the current version and return

{"errorCode": "MAX_USES", "errorMessage": 201}

 

 

How to fix it?

Search the file "root/applications/nexus/interface/licenses/index.php"

and search the code 

catch ( ApiException $e )
			{
				$api->error( $e->getMessage(), $e->getCode() );
			}

and replace for 

		catch ( ApiException $e )
			{
				$api->error($e->getCode(), $e->getMessage() );
			}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...