Hi,I am trying to play with this example to see what is possible but getting the error:
Authentication error: Unable to respond to any of these challenges: {}
When I try to add new contacts in the contact table using AddContactTask: Below is is the output I am getting,any pointers on what I might be doing wrong?
invokeAPI() called with: host = [https://df-ft-wayadn.enterprise.dreamfactory.com/api/v2], path = [/db/_table/contact], method = [POST], queryParams = [null], body = [{"first_name":"Gakwaya","twitter":"Twitt","image_url":"Image.png","last_name":"Daniel","notes":"Note","skype":"nSkype","id":51}], headerParams = [{X-DreamFactory-Session-Token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjMsInVzZXJfaWQiOjMsImVtYWlsIjoid2F5YWRuODhAZ21haWwuY29tIiwiZm9yZXZlciI6ZmFsc2UsImlzcyI6Imh0dHBzOlwvXC9kZi1mdC13YXlhZG4uZW50ZXJwcmlzZS5kcmVhbWZhY3RvcnkuY29tXC9hcGlcL3YyXC91c2VyXC9zZXNzaW9uIiwiaWF0IjoxNDYzOTc0MjM2LCJleHAiOjE0NjM5Nzc4MzYsIm5iZiI6MTQ2Mzk3NDIzNiwianRpIjoiNWIwODRlYThlZmZlZTBhZTUxYzdjMmQ4ZThkMDdmYzYifQ.9mfHzj_01-Ib5poK8TniJ9KEjC2_0ANb-2QaxLR2D2g, X-DreamFactory-Api-Key=20bd49da217c202bbef4f02b5c048703a9yyyyyyyyyyf57e096c1dad34934970}], contentType = [application/json], fileRequest = [null] 05-23 14:42:38.706 28430-28495/com.blikoon.dreamfactorytest W/DefaultRequestDirector: Authentication error: Unable to respond to any of these challenges: {} 05-23 14:42:38.716 28430-28495/com.blikoon.dreamfactorytest E/AddContactTask: going to on_failure() for an ApiException 05-23 14:42:38.716 28430-28495/com.blikoon.dreamfactorytest E/AddContactTask::baserequest::onError: com.blikoon.dreamfactorytest.dfapi.ApiException: {"error":{"context":null,"message":"Token has expired","code":401,"trace":["0 [internal function]: DreamFactory\\Http\\Middleware\\AccessCheck->handle(Object(Illuminate\\Http\\Request), Object(Closure))","1 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)","2 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))","3 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","4 [internal function]: Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","5 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9501): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","6 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9025): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","7 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9012): Illuminate\\Routing\\ControllerDispatcher->callWithinStack(Object(DreamFactory\\Http\\Controllers\\RestController), Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request), 'handlePOST')","8 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(8099): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request), 'DreamFactory\\Ht...', 'handlePOST')","9 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(8086): Illuminate\\Routing\\Route->runController(Object(Illuminate\\Http\\Request))","10 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7800): Illuminate\\Routing\\Route->run(Object(Illuminate\\Http\\Request))","11 [internal function]: Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","12 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","13 [internal function]: Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","14 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9501): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","15 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7801): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","16 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7792): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))","17 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7782): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))","18 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(2393): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))","19 [internal function]: Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))","20 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","21 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/dreamfactory/df-managed/src/Http/Middleware/ClusterAuditor.php(45): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","22 [internal function]: DreamFactory\\Managed\\Http\\Middleware\\ClusterAuditor->handle(Object(Illuminate\\Http\\Request), Object(Closure))","23 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)","24 [in
Hi,I am trying to play with this example to see what is possible but getting the error:
Authentication error: Unable to respond to any of these challenges: {}When I try to add new contacts in the contact table using AddContactTask: Below is is the output I am getting,any pointers on what I might be doing wrong?
invokeAPI() called with: host = [https://df-ft-wayadn.enterprise.dreamfactory.com/api/v2], path = [/db/_table/contact], method = [POST], queryParams = [null], body = [{"first_name":"Gakwaya","twitter":"Twitt","image_url":"Image.png","last_name":"Daniel","notes":"Note","skype":"nSkype","id":51}], headerParams = [{X-DreamFactory-Session-Token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjMsInVzZXJfaWQiOjMsImVtYWlsIjoid2F5YWRuODhAZ21haWwuY29tIiwiZm9yZXZlciI6ZmFsc2UsImlzcyI6Imh0dHBzOlwvXC9kZi1mdC13YXlhZG4uZW50ZXJwcmlzZS5kcmVhbWZhY3RvcnkuY29tXC9hcGlcL3YyXC91c2VyXC9zZXNzaW9uIiwiaWF0IjoxNDYzOTc0MjM2LCJleHAiOjE0NjM5Nzc4MzYsIm5iZiI6MTQ2Mzk3NDIzNiwianRpIjoiNWIwODRlYThlZmZlZTBhZTUxYzdjMmQ4ZThkMDdmYzYifQ.9mfHzj_01-Ib5poK8TniJ9KEjC2_0ANb-2QaxLR2D2g, X-DreamFactory-Api-Key=20bd49da217c202bbef4f02b5c048703a9yyyyyyyyyyf57e096c1dad34934970}], contentType = [application/json], fileRequest = [null] 05-23 14:42:38.706 28430-28495/com.blikoon.dreamfactorytest W/DefaultRequestDirector: Authentication error: Unable to respond to any of these challenges: {} 05-23 14:42:38.716 28430-28495/com.blikoon.dreamfactorytest E/AddContactTask: going to on_failure() for an ApiException 05-23 14:42:38.716 28430-28495/com.blikoon.dreamfactorytest E/AddContactTask::baserequest::onError: com.blikoon.dreamfactorytest.dfapi.ApiException: {"error":{"context":null,"message":"Token has expired","code":401,"trace":["0 [internal function]: DreamFactory\\Http\\Middleware\\AccessCheck->handle(Object(Illuminate\\Http\\Request), Object(Closure))","1 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)","2 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))","3 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","4 [internal function]: Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","5 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9501): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","6 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9025): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","7 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9012): Illuminate\\Routing\\ControllerDispatcher->callWithinStack(Object(DreamFactory\\Http\\Controllers\\RestController), Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request), 'handlePOST')","8 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(8099): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request), 'DreamFactory\\Ht...', 'handlePOST')","9 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(8086): Illuminate\\Routing\\Route->runController(Object(Illuminate\\Http\\Request))","10 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7800): Illuminate\\Routing\\Route->run(Object(Illuminate\\Http\\Request))","11 [internal function]: Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","12 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","13 [internal function]: Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","14 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9501): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","15 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7801): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","16 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7792): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))","17 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(7782): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))","18 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(2393): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))","19 [internal function]: Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))","20 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","21 /var/www/_releases/instance/dreamfactory/2.0.4/vendor/dreamfactory/df-managed/src/Http/Middleware/ClusterAuditor.php(45): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))","22 [internal function]: DreamFactory\\Managed\\Http\\Middleware\\ClusterAuditor->handle(Object(Illuminate\\Http\\Request), Object(Closure))","23 /var/www/_releases/instance/dreamfactory/2.0.4/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)","24 [in