Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all 5025 articles
Browse latest View live

DreamFactory Enterprise: Public Beta


Can't download files using both API Docs and REST API

$
0
0

I'm trying to set public paths to files, and public paths have to work without any headers. Even if I set a path as public in the file service config the path is not becoming public. Why is that?

Thanks

Issue with Changing System DataBase in Latest DSP Platform

$
0
0

yes followed the instructions in manual. cleared cache and ran DSP Setup as given here
http://wiki.dreamfactory.com/DreamFactory/Installation
It would re-run the migration in the Maria Db which is installed along with DSP. It will not read the values from .Env file. And i have searched online ...others have this issue with Latest Version of Laravel Framework

Bitnami 2.1.0-4 Remote Web service not show in API DOCS

$
0
0

That is correct. Thanks for the reminder for everyone.
DreamFactory 2.1 implemented Swagger 2 (see the changelog) which had very large differences in the json swagger definitions.

Can't download files using both API Docs and REST API

$
0
0

Public paths are for use in the browser, not for regular API calls. To access them them, you need to point your browser to

http://yourdreamfactoryurl/files/publicfolder

no api/v2

DreamFactory Enterprise: Public Beta

$
0
0

DreamFactory Enterprise is not free.
It is a commercial software package available for linux only.

It manages multiple instances of DreamFactory and provides reporting and analytics, and API rate limiting.

MSSQL Query Notifications with Server Side Script

$
0
0

I would like to setup a notification when a specific table in my MSSQL data base changes using Query Notifications that would kick off another process. Is there an example on how to do this or any ideas on how I would request an initial query notification via custom scripting service (which is just an endpoint)?

Add record using mysql service with php

$
0
0

I need to add a record using mysql service in a custom php server side script,

i try:
$payload = $event['request']['payload'];
$api = $platform['api'];
$post = $api->post;

$arr = array('id' => 999);
$msg = ['resource' => $arr];

$result = $post('mysql/_table/todo', '{"resource": $arr}');//none of these two rows
$result = $post('mysql/_table/todo', $msg); //seem to be working

My todo table is a single column table, and from the swagger definitions of the mysql service i can add new data with this body successfully,

{"resource": [{"id":789}]}

Thanx in advance


Add record using mysql service with php

$
0
0

$userDetailsData = ['provider_type' => ($payload['provider_type']),
'provider_user_id' => ($payload['provider_user_id']),
'user_id' => ($userProfileGetCall['content']['id'])];

$userDetailsPostCall = $post("mysql/_table/user_details",$userDetailsData);

an example from my code. Also see what the log file in apps/dreamfactory/htdocs/storage/logs shows after you run your script.

Can't export schema of tables. and can't import .dfpkg exported from 2.0.4 into 2.1.0

Problem sending email message with HTML

$
0
0

I can't seem to post what I need to... I am trying to include an html/css based email, and I keep getting the error below. I've verified that the JSON I am using is valid.

Here is my JSON that I am posting (I have to put it in Pastebin because it my whole message gets truncated otherwise):

{"error":{"context":null,"message":"No valid data in request.","code":400,"trace":["0 [internal function]: DreamFactory\Core\Services\Email\BaseService->handlePOST()","1 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(267): call_user_func(Array)","2 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(173): DreamFactory\Core\Components\RestHandler->processRequest()","3 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(65): DreamFactory\Core\Components\RestHandler->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), NULL)","4 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Utility/ServiceHandler.php(57): DreamFactory\Core\Services\BaseRestService->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), NULL)","5 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17669): DreamFactory\Core\Utility\ServiceHandler::processRequest('v2', 'seswerk', NULL)","6 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17645): DreamFactory\Http\Controllers\RestController->handleService('v2', 'seswerk', NULL)","7 [internal function]: DreamFactory\Http\Controllers\RestController->handlePOST('v2', 'seswerk')","8 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8873): call_user_func_array(Array, Array)","9 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8942): Illuminate\Routing\Controller->callAction('handlePOST', Array)","10 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8922): Illuminate\Routing\ControllerDispatcher->call(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), 'handlePOST')","11 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","12 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9593): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","13 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17817): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","14 [internal function]: DreamFactory\Http\Middleware\AccessCheck->handle(Object(Illuminate\Http\Request), Object(Closure))","15 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","16 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","17 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9575): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","18 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8923): Illuminate\Pipeline\Pipeline->then(Object(Closure))","19 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8908): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'handlePOST')","20 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7862): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'DreamFactory\\Ht...', 'handlePOST')","21 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7833): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))","22 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7486): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))","23 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))","24 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9593): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","25 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","26 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9575): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","27 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7487): Illuminate\Pipeline\Pipeline->then(Object(Closure))","28 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7475): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))","29 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7460): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))","30 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2307): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))","31 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))","32 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9593): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","33 /opt/dreamfactory/apps/dreamfactory/htdocs/app/Http/Middleware/AuthCheck.php(170): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","34 [internal function]: DreamFactory\Http\Middleware\AuthCheck->handle(Object(Illuminate\Http\Request), Object(Closure))","35 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","36 /opt/dreamfactory/apps/dreamfactory/htdocs/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","37 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))","38 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","39 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17909): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","40 [internal function]: DreamFactory\Http\Middleware\FirstUserCheck->handle(Object(Illuminate\Http\Request), Object(Closure))","41 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","42 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12961): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","43 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))","44 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","45 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(11555): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","46 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))","47 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","48 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12698): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","49 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))","50 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","51 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12635): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","52 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))","53 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","54 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","55 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))","56 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9585): call_user_func_array(Array, Array)","57 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))","58 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9575): call_user_func(Object(Closure), Object(Illuminate\Http\Request))","59 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2254): Illuminate\Pipeline\Pipeline->then(Object(Closure))","60 /opt/dreamfactory/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2237): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))","61 /opt/dreamfactory/apps/dreamfactory/htdocs/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))","62 {main}"]}}

Fetch more than 1000 records in one step

$
0
0

Hi Ben,

Just now I'm facing same issue to get more then 1000 Records. But I'm using Dreamfactory 2.1.0,
How can i Fix it??

Issue with custom email template

$
0
0

Had the same issue and fixed using the workaround. i.e platform.api.post("email?template=template_name", payload);

Thanks @allensandiego

Hosted website css stylesheet problem

$
0
0

Hi all,

I have created a simple webapp, based on the phonebook exemple with dreamfactory 2.1.0. The files are stored on dreamfactory files.

But I can't include the css stylesheet file.

The console displays the following message and the stylesheet in resources is empty.

Here the index.html, which should be correct.

The css file is correct utf-8 encoded. I created it with notepad++.

What could be the problem here?

Thx for any hints.

SQL Server Services error: Required extension or module 'sqlsrv' is not installed or loaded on Bitnami 2.1.0-4

$
0
0

Hi, I've the problem in topic title when I make a new Services SQL Server in DreamFactory with Bitnami 2.1.0-4.
I've learn all tutorials ad other similar topics in this forum, but the problem is not resolving.
I've downloaded the official Drivers SQL Server for PHP from the official site and I've updated php.ini with new extensions and copied sql server dll in ext directory.
How you help me? thanks for your answer.


Fetch more than 1000 records in one step

$
0
0

Did you try changing db_max_records_returned?

Unable to find whether the script is being executed or not?

$
0
0

HI,

I have created a post process script in v8js. But the script is not being executed.

Here is the script I have written:

print("Starting FirstTable post process");
var_dump(event.response); // outputs to file in storage/log of dreamfactory install directory
var lodash = require("lodash.min.js");
var options = {
"CURLOPT_HTTPHEADER": ["Content-type: application/json", "kf-api-key: 1234567"]
};
print("Starting payload process");
if (event.request.payload.resource) {

lodash._.each (event.request.payload.resource, function( record ) {
print("saving user to klipfolio");
result = platform.api.post("https://app.klipfolio.com/api/1/users", {"first_name":record.Column1,"last_name":record.Column1,"email":record.email}, options);

});

print("Ending payload process");
}

I have added print message at every step.But nothing is being displayed in the dreamfactory log. But I see following log messages:

[2016-03-15 17:37:02] local.DEBUG: Resource event: srdb._table.{table_name}.post.pre_process  [2016-03-15 17:37:02] local.DEBUG: Resource event: srdb._table.FirstTable.post.pre_process  [2016-03-15 17:37:02] local.DEBUG: Resource event: srdb._table.FirstTable.post.post_process  [2016-03-15 17:37:02] local.DEBUG: Resource event: srdb._table.{table_name}.post.post_process

I am clueless on where the mistake is. Please help.

Best Regards
Krishna G

Added to the documentation: DreamFactory logs

$
0
0

Hi,

The documentation related to logs is pointing toe page not found. Can you please share the latest link?

Thanks

Is there a console to debug server side scripts?

$
0
0

Hi Ben,

I might be asking a followup question on this very lately. Sorry for that.
Even though I use print statement, nothing is being displayed in the log. Is there any setting we should do?

Please suggest.

Thanks
Krishna

Unable to find whether the script is being executed or not?

$
0
0

For V8js scripting use var_dump() not print(). For Node.js scripting use console.log().

Viewing all 5025 articles
Browse latest View live