Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all 1524 articles
Browse latest View live

Parameters not passed while calling a remote stored procedure [Dreamfactory v2.12]

$
0
0

@schlivo wrote:

My environement info:
License Level: OPEN SOURCE
DreamFactory Version: 2.12.0
System Database: mysql
Install Path: /opt/dreamfactory/
Log Path: /opt/dreamfactory/storage/logs/
Log Mode: single
Log Level: DEBUG
Cache Driver: file
Cache Path: /opt/dreamfactory/storage/framework/cache/data/
Demo: false

I’m trying to call a remote stored procedure this stored procedure with a single parameter

CREATE DEFINER=dba@% PROCEDURE sp_my_proc(
_ IN param varchar(11)_

)
LANGUAGE SQL
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ‘’
SELECT param

When I try to call the procedure in API_Docs with this request:

curl -X GET “http://xx.xx.xx.xx/api/v2/data_dev_us/_proc/sp_my_proc?param=1” -H “accept: application/json” -H “X-DreamFactory-API-Key:…”
the response return an error:
“Failed to call database stored procedure.\nSQLSTATE[42S22]: Column not found: 1054 Unknown column ‘param’ in ‘field list’”,

My educated guess is that the framework doesn’t pass any parameter to the remote procedure.
As I get the same SQL Error message if I run this command in mysql client : call sp_my_proc();

I have another with Dreamfactory v2.11 where this issue is not present.

Any clues ?

Regards,

Dejan

Posts: 1

Participants: 1

Read full topic


Gitlab service 404 on retrieving files

$
0
0

@Andrew_Peacock wrote:

Hi all,
I’m trying to get the gitlab integration working so I can version-control my server scripts. I seem to have everything set up, as I can test the API in the DF API Docs section, and I can successfully call the “Get Repository Files and Directories” method and get a list of the files in the repo.

However, when I try to retrieve a specific file from that same repo, I get a 404 response. I’m trying to retrieve test.js in the repo root at the moment, and I’ve tried:

test.js
/test.js
/test.js

All 404

Has anyone got this working?

Regards,
Andy

Posts: 2

Participants: 1

Read full topic

Issue with Transactions being Rolled Back

$
0
0

@ollielowson wrote:

I am having some trouble with a script on DreamFactory (2.8.0).

I am posting this here, mostly in case others are experiencing the same problem, but if anyone has a solution, that would be appreciated :slight_smile:

The issue that we have been having is related to the way that transactions are handled. Unfortunately, it is difficult to explain how to replicate the issue without sending across proprietary information:

We have a custom script API running on all 3 servers, which processes an incoming request and updates a number of tables using internal API calls.

  1. A ‘device’ table is updated by either 1 or 2 internal API calls (depending on the source of the device data) with any new information on the incoming JSON concerning the device sending the request
  2. The rest of the request is processed, the data normalised and submitted with ‘rollback=true’ on a second (or third) API call. This call has 2 relationships in it, so the basic structure of the API call is:
    Message
    a. Message data
    b. eventByMessageID
    c. readingByMessageID
  3. For some reason, if the device has taken 2 calls to update, the transaction rolls back in the middle of processing this query

The debugging that we have done so far has led us to find that the transaction is being rolled back at the point that DF attempts to unserialize cached schema information (vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:188). For some reason at this point, it calls the destructor on the SqlDb class (vendor/dreamfactory/df-sqldb/src/Services/SqlDb.php:139). This appears to be disconnecting a service by name, which would be the same service as is currently being used for the transaction.

This may be related to an issue that we were having before – an error (rather than an exception) was being thrown, which older versions of Laravel were not handling correctly, when a connection was no longer available. The fix to this is now in Laravel 5.6 (and I have manually fixed DF on our servers), but that issue was in how an error was handled, not the root cause. This investigation may help to explain why the connection was being dropped in the first place.

Posts: 1

Participants: 1

Read full topic

Swift 4.0 and dreamfactory

$
0
0

@MrSpock wrote:

Hello,
Does anybody recommend to use dreamfactory for new project? Currently I am using PARSE Server, but found dreamfactory an interesting alternative. But what makes me reluctant is that the Code Exampe for swift is only in version 2.2. The current swift version is 4.0 and XCode does no longer support Swift 2.2 code. If dreamfactory has not updated this example since several months, the question for me is, whether it has a future.
Also I tried to post another question and were informed that it was temporary blocked for review and that it should be released shortly. That was 19 days ago and I asked after 5 days, when it would be released: no answer.
Does anybody has experience or recommendations on that?
Best Regards
Albert

Posts: 1

Participants: 1

Read full topic

Firebird Database

$
0
0

@MrSpock wrote:

Hello,
since I could get a connection to Firebird DB working on my own server, I installed DF on an AWS Server. Via SSL I installed Firebird and finally managed to connect to that database in the DF admin console.
Through the API page I can read and write data to the database. But if I select Data and select the firebird service and a table from that service, I see the correct number of entries, because for every entry I see a line, however all lines are blank!? Why is that?
Best Regards
Albert

Posts: 1

Participants: 1

Read full topic

Error 500 on user.session.post.post_process

$
0
0

@Gabriel wrote:

Hi guys,

I am trying to modify the session token by adding some new values to it.
I was following this article from @philicious adding-custom-session-data-to-dreamfactory-jwt-token

I’ve created a PHP event script on user.session.post.post_process.
The problem is that when I try to login to the application i get this error: “strpos() expects parameter 1 to be string, array given”.

If I disable the script the login works again. I’ve tried to leave the script blank, to set it to V8 or NodeJs, but the result is the same
It seems that I am not able to activate any event scripts on user.session.post.post_process.

This is the version data:

>     DreamFactory Version: 2.12.0
>     PHP Version: 7.1.16-1+ubuntu16.04.1+deb.sury.org+1
>     PHP Server API: FPM/FastCGI

This is the trace:

["0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'strpos() expect...', '/data/rest/vend...', 131, Array)",
"1 /data/rest/vendor/dreamfactory/df-script/src/Components/BaseEngineAdapter.php(131): strpos(Array, '\\n')",
"2 /data/rest/vendor/dreamfactory/df-script/src/Components/ScriptHandler.php(39): DreamFactory\\Core\\Script\\Components\\BaseEngineAdapter->runScript(Array, 'user.session.po...', Array, Array, NULL)",
"3 /data/rest/vendor/dreamfactory/df-script/src/Handlers/Events/ScriptableEventHandler.php(229): DreamFactory\\Core\\Script\\Handlers\\Events\\ScriptableEventHandler->handleScript('user.session.po...', Array, 'php', Array, Array)",
"4 /data/rest/vendor/dreamfactory/df-script/src/Handlers/Events/ScriptableEventHandler.php(74): DreamFactory\\Core\\Script\\Handlers\\Events\\ScriptableEventHandler->handleEventScript(Object(DreamFactory\\Core\\Script\\Models\\EventScript), Array)",
"5 [internal function]: DreamFactory\\Core\\Script\\Handlers\\Events\\ScriptableEventHandler->handleApiEvent(Object(DreamFactory\\Core\\Events\\PostProcessApiEvent))",
"6 /data/rest/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(369): call_user_func_array(Array, Array)",
"7 /data/rest/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(200): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('DreamFactory\\\\Co...', Array)",
"8 /data/rest/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(173): Illuminate\\Events\\Dispatcher->dispatch('DreamFactory\\\\Co...', Array, false)",
"9 /data/rest/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\\Events\\Dispatcher->fire(Object(DreamFactory\\Core\\Events\\PostProcessApiEvent))",
"10 /data/rest/vendor/dreamfactory/df-core/src/Components/RestHandler.php(366): Illuminate\\Support\\Facades\\Facade::__callStatic('fire', Array)",
"11 /data/rest/vendor/dreamfactory/df-core/src/Components/RestHandler.php(374): DreamFactory\\Core\\Components\\RestHandler->firePostProcessEvent()",
"12 /data/rest/vendor/dreamfactory/df-core/src/Components/RestHandler.php(216): DreamFactory\\Core\\Components\\RestHandler->postProcess()",
"13 /data/rest/vendor/dreamfactory/df-core/src/Components/RestHandler.php(254): DreamFactory\\Core\\Components\\RestHandler->handleRequest(Object(DreamFactory\\Core\\Utility\\ServiceRequest), '')",
"14 /data/rest/vendor/dreamfactory/df-core/src/Components/RestHandler.php(172): DreamFactory\\Core\\Components\\RestHandler->handleResource(Array)",
"15 /data/rest/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(146): DreamFactory\\Core\\Components\\RestHandler->handleRequest(Object(DreamFactory\\Core\\Utility\\ServiceRequest), 'session')",
"16 /data/rest/vendor/dreamfactory/df-core/src/Services/ServiceManager.php(496): DreamFactory\\Core\\Services\\BaseRestService->handleRequest(Object(DreamFactory\\Core\\Utility\\ServiceRequest), 'session')",
"17 /data/rest/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): DreamFactory\\Core\\Services\\ServiceManager->handleServiceRequest(Object(DreamFactory\\Core\\Utility\\ServiceRequest), 'user', 'session', false)",
"18 /data/rest/vendor/dreamfactory/df-core/src/Http/Controllers/RestController.php(159): Illuminate\\Support\\Facades\\Facade::__callStatic('handleServiceRe...', Array)",
"19 /data/rest/vendor/dreamfactory/df-core/src/Http/Controllers/RestController.php(118): DreamFactory\\Core\\Http\\Controllers\\RestController->handleServiceRequest(Object(DreamFactory\\Core\\Utility\\ServiceRequest), 'user', 'session')",
"20 [internal function]: DreamFactory\\Core\\Http\\Controllers\\RestController->handleVersionedService('v2', 'user', 'session')",
"21 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)",
"22 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('handleVersioned...', Array)",
"23 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(DreamFactory\\Core\\Http\\Controllers\\RestController), 'handleVersioned...')",
"24 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController()",
"25 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\Routing\\Route->run()",
"26 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"27 /data/rest/vendor/dreamfactory/df-core/src/Http/Middleware/AccessCheck.php(62): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"28 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): DreamFactory\\Core\\Http\\Middleware\\AccessCheck->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"29 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"30 /data/rest/vendor/dreamfactory/df-core/src/Http/Middleware/AuthCheck.php(232): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"31 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): DreamFactory\\Core\\Http\\Middleware\\AuthCheck->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"32 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"33 /data/rest/vendor/dreamfactory/df-core/src/Http/Middleware/VerbOverrides.php(42): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"34 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): DreamFactory\\Core\\Http\\Middleware\\VerbOverrides->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"35 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"36 /data/rest/vendor/barryvdh/laravel-cors/src/HandleCors.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"37 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\Cors\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"38 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"39 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"40 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))",
"41 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))",
"42 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))",
"43 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))",
"44 /data/rest/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))",
"45 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))",
"46 /data/rest/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"47 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"48 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"49 /data/rest/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"50 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"51 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"52 /data/rest/vendor/barryvdh/laravel-cors/src/HandlePreflight.php(34): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"53 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\Cors\\HandlePreflight->handle(Object(Illuminate\\Http\\Request), Object(Closure))",
"54 /data/rest/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))",
"55 /data/rest/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))",
"56 /data/rest/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))",
"57 /data/rest/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))",
"58 /data/rest/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))",
"59 {main}"]

Any suggestions are most welcome.
Thanks
Gabriel

Posts: 1

Participants: 1

Read full topic

Disabling Launchpad

$
0
0

@Rudy_Hinojosa wrote:

I’m using open registration. Users self register via the api. They get the email, they click the confirm link. They enter their password and click ok. Can I redirect them away from the launchpad to another URL? I don’t want any users to see the launchpad.

Posts: 1

Participants: 1

Read full topic

Different/Unrecognized content type returned for the audio file

$
0
0

@Ved_Prakash wrote:

We are facing a problem of wrong content type returned when accessing the uploaded file. We are trying to play the audio file in iOS SDK, expected content-type is audio/mp4 where as dreamfactory returns audio/x-m4a which is an unknown content-type for iOS SDK.

How to solve the problem? There can be a solution we think of, writing a Pre-Script to change the content-type of the file requested, but not sure HOW?

If anyone can put us in right direction it will be very helpful.

Thanks.

Posts: 1

Participants: 1

Read full topic


Access Forbidden

$
0
0

@Praveen_BM_Reddy wrote:

Hi im getting this error while loging through application like “Access Forbidden. GET access to component ‘_table/user_school’ of service ‘school_org’ is not allowed by this user’s role.”

Please help i am using V2.12

Posts: 1

Participants: 1

Read full topic

Facebook Login OAuth

$
0
0

@shawnbure wrote:

I have followed all of the posts I have seen for configuring FB oauth - and using the integrated fb button login. I keep getting this from facebook:

Can’t Load URL: The domain of this URL isn’t included in the app’s domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

Is there an updated version?

This is what my fb page url says:

https://www.facebook.com/v2.8/dialog/oauth?client_id=xxxxxxxxxxx&redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fv2.12%2Fdialog%2Foauth%3Fservice%3Dfacebook%26app_id%xxxxxxx%26redirect_uri%3Dhttp%3A%2F%2Fapi.threethingy.com&scope=email&response_type=code&state=AXoz4179aqxHKwyRapSVNBsIW3bD9HoV2fykQLTb

Posts: 2

Participants: 1

Read full topic

Configuration of Apache Server

$
0
0

@MrSpock wrote:

Here I found how to install dreamfactory on my mac “manually”. The last point on that page ist webserver and it shows the configuration settings for the nginx server. If I want to use Apache instead, which settings to I have to write into the config file for Apache?

Posts: 1

Participants: 1

Read full topic

Artisan Error when attempting DF Upgrade from Version 2 -

$
0
0

@AidanD wrote:

I have a Bitnami native installed version 2.0 of DF on a Debian VM.

I am attempting to upgrade to the latest release of DF following the instructions at http://wiki.dreamfactory.com/DreamFactory/Bitnami_Linux/Upgrades

When I reach step 6 of the upgrade which is Migrate the system data using the command
$ …/…/…/php/bin/php artisan migrate --seed I get the following error:
**Could not open input file: artisan

Any advice on this would be much appreciated - thank you

Posts: 1

Participants: 1

Read full topic

Unable to clear php artisan config: clear

$
0
0

@Shivamurugan wrote:

I’m trying to increase the session expiring time, for that i found this documentation
documentation
and i have done with 1 and 2 while trying 3rd i receiving an error stats
The program ‘php’ can be found in the following packages:
* php7.0-cli
* hhvm
Try: sudo apt install
while running the php artisan config:clear
For this error the solution stated in the doc was “If you receive an error that PHP is not recognized as internal or external command you will need to specify the full path to your PHP”
I’m not sure how to set/specify the full path to clear the config, is there any alternative way or any reference for this issue.
Note:i’m using Ubuntu OS.

Posts: 1

Participants: 1

Read full topic

Custom Api Response for get method

$
0
0

@Shivamurugan wrote:

i want to get the nested array count(like_by_recipe_id) in the response below where getting this response by hitting this below URL :

http://localhost:8080/api/v2/mysql/_table/recipe?related=like_by_recipe_id&filter=id=1&limit=5&include_count=true

Here the table used is recipe table and primary key of this table is referred as a foreign_key in the like table, while listing all the recipes in the homepage, just want to show the likes_count for the respective recipes too in_order to show that i just want the count of “like_by_recipe_id” array. Is there any way to achieve this using dreamfactory API doc’s or anyother way please guide me in this to solve.
{
“resource”: [
{
“id”: 1,
“title”: “Chicken gravy”,
“thumbnailurl”: “https://img.youtube.com/vi/ygf1wHXXE/0.jpg”,
“videourl”: “https://www.youtube.com/watch?v=ygf1wXXE&list=PLZm7plTpBVTkzFSxhnHqCmBMHVFkk”,
“created_by”: “First author”,
“created_at”: “2018-04-13 14:51:36”,
“source_id”: 1,
“category_id”: 1,
“description”: “Description for First post”,
“is_active”: true,
“directions”: “Directions for first post”,
“ingredients”: “Ingredients for first post”,
“like_by_recipe_id”: [
{
“id”: 1,
“deviceid”: “AndroidId123”,
“recipe_id”: 1,
“status”: true,
“date”: “2018-04-13 15:03:26”
},
{
“id”: 2,
“deviceid”: “AndroidId124”,
“recipe_id”: 1,
“status”: true,
“date”: “2018-04-13 14:55:39”
},
{
“id”: 11,
“deviceid”: “f66e73c660f576b9”,
“recipe_id”: 1,
“status”: true,
“date”: “2018-04-13 14:55:39”
}
]
}
],
“meta”: {
“count”: 1
}
}

Thanks in advance

Posts: 1

Participants: 1

Read full topic

Anyone have success installing it with apache alias (not on root) or with mod_proxy?

$
0
0

@Velin_Budinov wrote:

Hi guys,

I’m trying to configure dreamfactory with mod_alias or mod_proxy. With both attempts got 404:
Alias /df /opt/dreamfactory/public
I see login screen, but when try to login got 404:
https://examle.com/api/v2/system/environment
I’ve tried with rewrite:
RewriteRule ^api$ /df/api? [L,R=301] with no success

Any suggestions?

Regards,

Posts: 1

Participants: 1

Read full topic


Access forbidden for guest user

$
0
0

@Praveen_BM_Reddy wrote:

Access Forbidden. GET access to component ‘_table/user_data’ of service ‘user_org’ is not allowed by this user’s role

Posts: 1

Participants: 1

Read full topic

DF 2.12 and remote HTTP service works via Postman but not AJAX

$
0
0

@Tim_lloyd wrote:

Hi everyone

I’ve searched the forum but can’t find anything similar with an answer so thought I’d try a new post.

I’ve set up DF 2.12 and a remote HTTP service to Stripe. This works perfectly when I call the DF service endpoint via Postman or via Curl on the command line, e.g.

curl -X GET \
  'https://api.mydfserver.com/api/v2/stripesandbox/accounts?_dc=1524129954370&offset=1&start=0&limit=25' \
  -H 'X-DreamFactory-API-Key: myDFkey'

Then it correctly returns accounts from Stripe in JSON format.

If I try the same GET using Ajax (plain XMLHttpRequest or JQuery) then I see the request fire in Chrome Tools, it returns 200 OK, but the response is empty / blank.

CORS are set to * - no errors at all. I’ve tried from localhost and also from a web server. Curl on the web server works fine too.

I should say that normal calls to DF work fine from Ajax e.g. I can access my MySQL table through _table endpoint without issues, it’s just when I try and use the HTTP service.

Any ideas if this is a bug or if there is some other restriction with HTTP service?

Thanks

Posts: 1

Participants: 1

Read full topic

Unable to create role for SFTP file service

$
0
0

@ktran wrote:

Hi,

I created an SFTP file service Dreamfactory and can access the files via the api_docs endpoint.
However when I try to create the role I am getting “Service Error” under the Components column.
I am using Bitnami Dreamfactory 2.12 running on Centos 7.4. Could anyone point me in the right direction to resolve this issue, please.

TIA,
Khoa

Posts: 2

Participants: 2

Read full topic

Dreamfactory related data not coming showing unknown HTML error

$
0
0

@Uday_Kumar wrote:

When calling an get API with related * given an unknown html error is showing with 500 error code .few days ago it was working fine i have checked all my database relations are ok. I cant identify the reason need help.

Posts: 1

Participants: 1

Read full topic

PHP Email Service Payload Formatting

$
0
0

@Mike_Harvey wrote:

I have a PHP server side script and I need to send an email but cannot find an example on how to format the payload. This is what I have but am getting a rest exception saying the email address is invalid. How should i format the payload for my email service?

        $email_content = [
      'template' => 'retired__form',
      'to'=> [
          'name' => $org_admin_name,
          'email' => $org_admin_email
      ],
      'subject'         => 'Retired Form Failure',
      'body_text'       => 'Hi {name}, This is a notification for a retired form submission.',
      'from_name'       => 'XXX Notifications',
      'from_email'      => 'notifications@abc.com',
      'reply_to_name'   => 'XXX Support',
      'reply_to_email'  => 'support@abc.com',
      'org_admin_name'  => $org_admin_name,
      'auditor'         => $this_auditor,
      'form_name'       => $form_name_pretty,
      'submission_date' => $nicedate,
      'institution'     => $this_institution
    ];

Posts: 1

Participants: 1

Read full topic

Viewing all 1524 articles
Browse latest View live