This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CWP API / Re: Slim Application Error
« on: February 01, 2020, 08:20:36 PM »
$data = array("key" => "MYKEY","action"=>'list');
Or anything else that require https://hostname:2304/v1/account will do the same.
Thanks for your help !
Or anything else that require https://hostname:2304/v1/account will do the same.
Thanks for your help !
2
CWP API / Slim Application Error
« on: February 01, 2020, 06:07:52 PM »
Hi guys.
I'm having a hard time communicating with the API for account modification.
When using https://hostname:2304/v1/account I'm getting the following error:
Slim Application Error
The application could not run because of the following error:
Details
Type: ErrorException
Code: 8
Message: Array to string conversion
File: /usr/local/cwpsrv/var/services/api/v1/index.php
Trace
#0 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim::handleErrors(8, 'Array to string...', '/usr/local/cwps...', 0, Array)
#1 [internal function]: {closure}()
#2 /usr/local/cwpsrv/var/services/api/v1/Slim/Route.php(0): call_user_func_array(Object(Closure), Array)
#3 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Route->dispatch()
#4 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/Flash.php(0): Slim\Slim->call()
#5 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/MethodOverride.php(0): Slim\Middleware\Flash->call()
#6 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/PrettyExceptions.php(0): Slim\Middleware\MethodOverride->call()
#7 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Middleware\PrettyExceptions->call()
#8 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim->run()
#9 {main}
Anything else works (package update, password change, ...)
Suggestions ?
Thank you!
I'm having a hard time communicating with the API for account modification.
When using https://hostname:2304/v1/account I'm getting the following error:
Slim Application Error
The application could not run because of the following error:
Details
Type: ErrorException
Code: 8
Message: Array to string conversion
File: /usr/local/cwpsrv/var/services/api/v1/index.php
Trace
#0 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim::handleErrors(8, 'Array to string...', '/usr/local/cwps...', 0, Array)
#1 [internal function]: {closure}()
#2 /usr/local/cwpsrv/var/services/api/v1/Slim/Route.php(0): call_user_func_array(Object(Closure), Array)
#3 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Route->dispatch()
#4 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/Flash.php(0): Slim\Slim->call()
#5 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/MethodOverride.php(0): Slim\Middleware\Flash->call()
#6 /usr/local/cwpsrv/var/services/api/v1/Slim/Middleware/PrettyExceptions.php(0): Slim\Middleware\MethodOverride->call()
#7 /usr/local/cwpsrv/var/services/api/v1/Slim/Slim.php(0): Slim\Middleware\PrettyExceptions->call()
#8 /usr/local/cwpsrv/var/services/api/v1/index.php(0): Slim\Slim->run()
#9 {main}
Anything else works (package update, password change, ...)
Suggestions ?
Thank you!
Pages: [1]