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

Apparently successful install results in: "No session token (JWT) provided. Please provide a valid JWT using X-DreamFactory-Session-Token ..."

$
0
0

@tylerssn wrote:

I just installed the latest develop branch. Everything worked as expected in my local dev env.

Everything appeared to have been installed successfully when I deployed the app, but after creating my user and attempting to login at https://{host}/dreamfactory/dist/index.html#/login I get:

No session token (JWT) provided. Please provide a valid JWT using X-DreamFactory-Session-Token request header or 'session_token' url query parameter.

Posts: 2

Participants: 1

Read full topic


Call Stored Procedure from PHP server scripts

$
0
0

@radodr wrote:

Hello,
I have installed Dream Factory from github v 2.14.0, I use service with MariaDB service.

In php server script I call StoredProcedure with parameters. First call is ok, but second and others finish with error in DF log:
local.ERROR: Call to a member function prepare() on null {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function prepare() on null at /opt/dreamfactory/dreamfactory_devel/vendor/dreamfactory/df-database/src/Components/Schema.php:1388)"}

As I looked in the code, it seems that $ this-> connection is NULL or $ this-> connection-> getPdo () is NULL. It looks like after the first call, the database connection is released.

After cleared cache, the call is working again for the first time, but next time it is with the same error again.

Do you have the similar problems?

Posts: 1

Participants: 1

Read full topic

Where to check logs in dreamfactory 2.14

$
0
0

@regalartech wrote:

I loved this product. Awesome work. I am trying to find the log files . I found one in the files but that does not have the fail logs of say _table API or other default API .

Note : I am using my custom build of dreamfactory connected to postgres as base DB.

Posts: 1

Participants: 1

Read full topic

Add a checkbox in the HTTP service for URL encoded options

$
0
0

@regalartech wrote:

When I already have a request that is URL encoded , the HTTP service is again encoding the already encoded URL. It will a good and simple solution to allow the user which type of url does he wish to send simple URL or encoded URL .

for more details

Posts: 1

Participants: 1

Read full topic

Cannot find Chapter 6 of getting started guide

Consuming 3rd party REST API's

$
0
0

@sman wrote:

Does dreamfactory have a built in way to consume 3rd party API’s or will I have have to try add that myself using a Laravel recipe or something?

I primarily need 2 things. An API first platform with MySQL persistence which is what dreamfactory is designed for. The second thing is that I need to consume multiple 3rd party REST API’s as if they were just another way to store and retrieve data.

Reading through the documentation I don’t see anything that indicates dreamfactory has anything like that built in.

Posts: 1

Participants: 1

Read full topic

MS SQL issue in GUI

$
0
0

@umardraz wrote:

Hi

I am running Dreamfactory 2.1.0 now I have a very strange issue, I am unable to connect one of my SQL server through GUI/API. Here is the error

“message”: “Failed to connect to database.\nConnection failed to open the DB connection: SQLSTATE[01002] Adaptive Server connection failed (severity 9)”,

But from command line it is working using tsql

root@ip-10-0-200-98:~# /opt/bitnami/common/bin/tsql -S dbserver -U sqluser -P vTest91019

locale is “en_US.UTF-8”
locale charset is “UTF-8”
using default charset “UTF-8”
1>

As you can see there is no issue with command line. Would you please help me that how I can fix this issue?.

Posts: 1

Participants: 1

Read full topic

How do you generate OpenAPI JSON definition?

$
0
0

@sman wrote:

I plan to connect to several different 3rd party API’s. Many do not provide JSON definition files which would make things much easier.

Are there any automated tools that could perhaps scan a 3rd party API and generate that file? How did dreamfactory create these 3rd party definition files?

Also, the terminology is kind of confusing. It seems there are several definitions of a JSON definition file. Dreamfactory calls them service defintions.

Posts: 1

Participants: 1

Read full topic


Service Definition buggy

$
0
0

@sman wrote:

Trying to get a basic service definition working and it simply does now work. I can do a GET without any parameters but as soon as I try any GET with parameters nothing happens in API Docs when I press “execute”. I tried using your twilio example JSON and simplfied it down to just one path and still does not work. I looked in storage/logs/dreamfacory.log and there are no errors.

Not a very good first impression of this product unfortunately. I had high hopes but I really need service definitions and HTTP service in general to be solid and I don’t get that impression. I know service definition is just for API Docs but it’s still critical that works.

This is what I slimmed down the Twilio example to. Verified it works on http://editor.swagger.io/ which found some errors I had to change, again, not a good first impression when your swagger examples don’t even pass verification.

{
"swagger": "2.0",
"info": {
	"title": "Twilio Account API",
	"description": "Twilio is a cloud communications Infrastructure as a Service(IaaS) company based in San Francisco, California. Twilio allows software developers to programmatically make and receive phone calls and send and receive text messages using its web service APIs. Twilio's services are accessed over HTTP and are billed based on usage.",
	"termsOfService": "https://www.twilio.com/legal/tos",
	"version": "2010-04-01"
},
"host": "api.twilio.com",
"basePath": "/2010-04-01",
"schemes": [
	"https"
],
"produces": [
	"application/json"
],
"consumes": [
	"application/json"
],
"paths": {
	"/{AccountSid}.{format}": {
		"get": {
			"summary": "Get Account",
			"description": "GetAccount",
			"operationId": "getaccount",
			"parameters": [
				{
				  "required": true,
					"in": "path",
					"name": "AccountSid",
					"type": "string"
				},
				{
				  "required": true,
					"in": "path",
					"name": "format",
					"type": "string"
				}
			],
			"responses": {
				"200": {
					"description": "OK"
				}
			},
		}
	}
},
"definitions": {}

}

Posts: 2

Participants: 1

Read full topic

Queued Scripting Working Inconsistently

$
0
0

@CrystalTaggart wrote:

I’m trying to get a queued script to work and have read the 3 documents in the wiki and 4 posts on this.

If I only select ‘Queue For Later Execution’, it processes synchronously.
If I set the connection to ‘database’ it immediately returns a 202 response with
{
“success”: true
}

However, my script never gets executed.
I’m checking the jobs table and nothing is stored in there.
If I remove queue for later execution it works fine every time and takes about 6 seconds to run

It doesn’t seem to run unless I run php artisan queue:listen database on the command line (not sure if you are supposed to do that when you start the server every time)

When I do run php artisan queue:listen database it processes but sometimes doesn’t complete the task and it doesn’t show up in the failed scripts.

Here’s the articles that I’ve looked at:
https://blog.dreamfactory.com/queueing-with-dreamfactory-scripting/
http://wiki.dreamfactory.com/DreamFactory/Features/Scripting#Queued_Scripting_Setup
http://wiki.dreamfactory.com/DreamFactory/Features/Scripting/Script_Services

Also occasionally I run or edit my script and get a weird error that it can’t write to the file:
“file_put_contents(/opt/dreamfactory/storage/framework/cache/data/10/a3/10a34637ad661d98ba3344717656fcc76209c2f8): failed to open stream: Permission denied”

Posts: 1

Participants: 1

Read full topic

Passing variables from Pre-Process to Post-Process scripts

$
0
0

@charleslcso wrote:

Hello, I’m new to DreamFactory but I’m starting to get the hang of it. I’m on Bitnami 2.14.1-13.

I’m playing with Scripts. Managed to get Pre-Process and Post-Process scripts working by following the examples in various places.

Now I’m thinking to pass a few variables created during the Pre-Process event, and have them available during the Post-Process event.

I tried to place a variable in

$event[‘request’][‘payload’][‘var1’] = ‘abc’;

during Pre-Process, but it is no longer there in Post-Process.

How should I approach this please?

Thanks alot!

Posts: 1

Participants: 1

Read full topic

When would .queued be fired?

Dear All DF Fans, version 3.0 is released with wings cut! Open source will be killed shortly!

$
0
0

@Hussain_Fakhruddin wrote:

Dear All DF Fans !

Have you guys seen that the DF team has moved two very popular features to their paid plan without making a formal announcement?

  1. MySQL service - The most popular database in the world. Now its needed to pay to use this service.

  2. Custom scripting - Without which you will not be able to write any pre & post scripts, which means you will not be able to customize anything on the open source version. This is now a paid solution.

Basically your DF which you loved is a bird which cannot fly unless you pay!

I feel hurt.

Not because its paid, but because of the lack of transparency and open-ness.

Firstly, If the company is releasing an open source version, they should at-least have a open mentality to inform their users about this major change.From last 3 months, there aren’t any company support on the community forum for any major bug fixes of any sort.

Secondly, the developers would not be able to use old code in new version 3.0 because of the complexity. In-fact the last major 2.14 release has major scripting bugs which makes it unusable too. The strangest thing is : no one in the forum from the company is replying!

Like many open source products we see in the market, this great product will lose its greatness just because they are slowly killing it.

I have been a great fan of this product, but unfortunately, they have just begun to kill it. Its a sad day today.

Comments ?

Posts: 2

Participants: 2

Read full topic

Stored Procedure with Firebird

$
0
0

@MrSpock wrote:

Hello,
I am using DF with a Firebird 3.0 DB. When I try to call a _proc it will not be found. When I try to show all _proc or _func procedures/ functions, the resource is always empty.
I rebooted the server, restarted Apache, but DF doesn’t show the procedures and cannot call them. How can I fix it? I need the SP.

Posts: 1

Participants: 1

Read full topic

Should Firebird driver work without additional config?

$
0
0

@davidknaack wrote:

I am using the docker dreamfactorysoftware/df-docker image. I can successfully connect to a PostgreSQL database, but when I try to connect to a Firebird database I receive the “could not find driver” error message.

I see in the DreamFactory Config|System Info screen under ‘Installed Packages’ that dreamfactor/df-firebird is installed, but I do not see any firebird or interbase .so files in the container.

I played around with modifying the running container by ‘apt-get install php7.0-interbase’, copying the .so file in the dreamfactory php extensions and updating the php.ini, but I’m not at all familiar with php, so I’m pretty much in the dark here.

What do I need to do to install and configure the Firebird driver to work with DreamFactory?

Posts: 1

Participants: 1

Read full topic


Connect Laravel to Dreamfactory

$
0
0

@nathanaelluchetta wrote:

Is it possible? Connect Laravel by the .env file to the Dreamfactory created database?

I ask this because I want to use Eloquent besides the HTML get and posts.

Posts: 1

Participants: 1

Read full topic

Valid Silver License - Still Seeing Intercom Chatbot

$
0
0

@pbeverage wrote:

We are just beginning to use DreamFactory in our shop. However, during my test setup, I noticed that no matter what the licensing is on the server side, there is still an Intercom chatbot in the lower-right corner of my screen when logged in. For both Admins and Users, this is unnecessary – especially considering we already have a valid license on the installation.
Has anyone had this happen before? If so, what is the trick to removing it, outside of writing some code or CSS filters to remove it forcefully?

Thanks,

PB

Posts: 1

Participants: 1

Read full topic

Error - Failed to open stream: Permission denied

$
0
0

@Reto wrote:

Hi

We are trying to use server-side scripting. But there is a permission problem.

{
"error": {
    "code": 500,
    "message": "file_put_contents(C:\\inetpub\\wwwroot\\dreamfactory2\\dreamfactory\\storage\\scripting\\xyz._table.abc.get.pre_process_5d5d022f2678b5.04979505.py): failed to open stream: Permission denied"
}
}

Do we have to configure access to local storage for the role, that’s calling the get on the table?
Or is this an installation problem?

Posts: 1

Participants: 1

Read full topic

Could not find a service for dreamfactory

$
0
0

@charleslcso wrote:

Hello,
I follow this doc to install DF vi GitHub on Ubuntu 18.04 LTS using PostgreSQL, Nginx. All dependence are installed.

Seems the database is being populated with tables.

Then got all the way to seeing “Create a System Admin User”. After clicking the Create button, I get:

Could not find a service for dreamfactory

Inspecting the table I can see the user was indeed created in table “user”.

ufw is disabled.

In nginx log, I get:

FastCGI sent in stderr: “PHP message: REST Exception #404 > Could not find a service for dreamfactory”

Is dreamfactory in the message representing a user with the name “dreamfactory”? The admin user I try to create is not “dreamfactory”.

In dreamfactory.log, I get:

[2019-06-20 13:52:03] local.INFO: [REQUEST] Storage {“Method”:“GET”,“Service”:“dreamfactory”,“Path”:“dist/index.html”}
[2019-06-20 13:52:03] local.INFO: [RESPONSE] {“Status Code”:404,“Content-Type”:“text/html”}

I’m totally new to DF, and what am I to do now?

Posts: 1

Participants: 1

Read full topic

Is there a backup of my old database after installing DreamFactory

$
0
0

@patrikgrinsvall wrote:

Hi!

I’m a new user and wanted to test Dreamfactory to build my stuff in. So i downloaded and installed the windows version from https://bitnami.com/stack/dreamfactory/installer

During installation it asked me for my database password, I thought it was strange since I already have a development environment setup on my local machine.

It now seems like it has reinstalled MySQL and all my other databases are erased by dreamfactory default ones.

Are there any backups stored anywhere of the old data?

Posts: 2

Participants: 1

Read full topic

Viewing all 1524 articles
Browse latest View live