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

Downloaded Angular2 Example, Where In Local Storage - I can't find it

$
0
0

@jmpreston wrote:

I selected the Angular2 app from the Apps section.

I followed the instructions for for the angular2-sdk and expected to see the app in the Files section of DF2 per the DF tutorials. It isn’t there. I looked on the server at /df2/apps/dreamfactory/htdocs/storage/app and only gitignore lives there. This same file shows in the Files section. I looked in Apache and Nginx and everywhere I could think of, I’m using Nginx, but no Angular2 app.

I can see the tables and data in DF2. I need to access the config file to replace the DF API key code and for that I need to find the app code and edit it.

I tried all the storage options for the app except remote URL. I’ve downloaded the example files several times using every option in the UI. I couldn’t find anything about this on the Web.

I’m on a Mac but using a Vagrant Ubuntu 16.04 box.

I’ll try to set this up manually but it seems like it should just work…

Posts: 1

Participants: 1

Read full topic


Bad request error on use of special characters

$
0
0

@cocomo wrote:

I want to filter a field of type mediumtext for the equal sign. But that throws a 400 Bad Request error. I get the same result when I filter for the greater-than or smaller-than sign. I guess because these symbols conflict with the SQL comparison operators.
I am making a request to MySQL Maria database via the dreamfactory’s API.

I tried escaping the equal sign with a backslash, but it did not work.

What can I do now?

Details:
Request URL: …/mytablename?fields=content&filter=content%20like%20%25%3D%25
Response Body:
{
“error”: {
“code”: 400,
“context”: null,
“message”: “Invalid or unparsable field in filter request: ‘content like %’”,
“status_code”: 400
}
}

Posts: 1

Participants: 1

Read full topic

Are components definable in custom script services?

$
0
0

@RQJ wrote:

I’m writing a custom v8js script API to make a CouchDB API that can access views. I’m wondering if there is a way with Dreamfactory to allow user roles only access to certain tables? Are components in role definitions supported for custom scripts?

Thanks!

Posts: 4

Participants: 3

Read full topic

Unable to change or reset password

$
0
0

@Erik_Sherman wrote:

DreamFactory Version: 2.3.0 hosted on Google Cloud

I am having trouble with resetting user passwords. Initially, I thought it was a problem with my custom password reset page that gets linked from the email. I get error 500, “Error processing password reset. The token has been blacklisted” but I have the same problem from user management in the DF admin console. “Api Error
Failed to update resource: The token has been blacklisted”

If I create the user manually in the console I can change the password no problem…but once I login via my app I can no longer change it as I receive the error above.

Any suggestions?

Posts: 3

Participants: 2

Read full topic

Bitnami, DF, and AWS Rekognition

$
0
0

@ccs2001 wrote:

After 2 weeks, I’m still trying to get my Bitnami/Dreamfactory working with AWS Rekognition. I’m a novice at the backend stuff.

I’ve installed Composer and the latest ASW SDK from here: http://docs.aws.amazon.com/aws-sdk-php/v3/guide/getting-started/installation.html

I’m confused as to where this goes:

<?php require 'vendor/autoload.php'; Also, there seem to be 2 different DF programs. One local and one cloud. The local one has only the 3 apps I started with (phpMyAdmin accessible), and the cloud one has all the Services, apps, etc. I’ve been trying. It seems to me that I’m installing these things (Composer, etc.) on the local configuration (on my hard drive). Am I doing something wrong? How do I know that changes I make are making it to both? Should I have 2? In my cloud DF, the AWS Rekognition SDK seems to be installed in Services and the API-DOCS seem to appear properly. When I TRY the LISTCOLLECTIONS, I receive this error, although the URL shown in the error is a mere snippet of the BASE URL entered in the service, and the SERVICE DEFINITION. "error": { "code": 6, "context": null, "message": "Couldn't resolve host 'rekognition.amazonaws.com'", "status_code": 500 } } Any help will be greatly appreciated!

Posts: 1

Participants: 1

Read full topic

mySQL API call stored procedure sometimes return error: incorrect number of arguments

$
0
0

@qpalzm wrote:

Hi All,

I always encounter this weird error when calling stored procedure on REST API,

Failed to call database stored procedure. SQLSTATE[42000]: Syntax error or access violation: 1318 Incorrect number of arguments for PROCEDURE [db_name].[procedure_name]; expected [parameterCount], got [parameterCount]

Is anyone encounter this ? We already check it a thousand times that parameters that we pass and the parameters that procedure will received is equal,

What I did so far.

  1. go to config>cache> Flush System-wide Cache
  2. DROP the procedure and create a new procedure, exact name
  3. a thousand time check if stored procedure parameters are equal

Non of these solve my problem,

The only thing that solve this weird bug is create a new procedure with different name,
Ex. procedureName to procedureName1
(hassle for us because we need to change the name of procedure from the PHP too)
also as stated we just add number when this bug came out, on our experience we already reach up to 6 procedure

I notice that this happens when we update the stored procedure content.

Here’s my mySQ: version: 5.6.24 and 5.6.35

Best Regards,
Teejay


Form data
form general

Posts: 1

Participants: 1

Read full topic

AWS Rekognition

$
0
0

@ccs2001 wrote:

In my cloud DF, the AWS Rekognition SDK seems to be installed in Services and the API-DOCS seem to appear properly. When I TRY the LISTCOLLECTIONS, I receive this error, although the URL shown in the error is a mere snippet of the BASE URL entered in the service, and the SERVICE DEFINITION. “error”: { “code”: 6, “context”: null, “message”: “Couldn’t resolve host ‘rekognition.amazonaws.com’”, “status_code”: 500 }

Posts: 1

Participants: 1

Read full topic

How to change the file which I senh as FormData


Usage of Dream factory?

$
0
0

@Victoria_Dimitrova wrote:

Hi,
I am currently looking for API Manager solution and I juste understood the existance of Dream Factry.
I saw that its allow to make REST calls connecting SQL or NoSQL database, but is it also possible to used it only for REST API calls ?

Thanks

Posts: 1

Participants: 1

Read full topic

Swagger definition error - Could not resolve reference

$
0
0

@Victoria_Dimitrova wrote:

Hi,

I am new in Dream Factory community and I juste install Bitnami windows version locally in order to try it.
I am interessed into creating Remote Services API and I try to put a swagger definition getting the Swagger example from https://editor.swagger.io/ because my swagger definition has the same error.

Here the errors :

Can someone tell me what can be the problem ?

Thanks a lot

Posts: 1

Participants: 1

Read full topic

How to implement OAuth via Facebook mobile app

$
0
0

@rbarriuso wrote:

Hi all,

We developed a hybrid mobile application as front-end integrated with a DreamFactory 2.2.1 back-end, which includes a Facebook OAuth service configured as explained in the tutorial (using web redirection). With this setup social authentication works fine.

Now we would like to use the native Facebook app installed on the mobile device (instead of a web browser) to authenticate our users against our DF backend, but we don’t find how to implement the auth process.

For example using cordova-plugin-facebook4 it’s pretty straightforward to get a FB accessToken via the native FB app, but the API of DF expects an authorization code to obtain the accessToken by itself (according to the tutorial). It seems not possible to get an authorization code using the native FB app, so my question is the following:

Is it possible to perform the OAuth process in DF using an accessToken instead of the authorization code?

It seems that according to the source code, either the DF FB service requests the authorization code via web redirection or directly redirects to the login page.

These are the specific versions we’re using:
DreamFactory Version: 2.2.1
dreamfactory/df-core 0.3.3
dreamfactory/df-oauth 0.3.1
aravel/framework v5.2.45
laravel/socialite v2.0.21

Any thoughts on this?

Thanks in advance for your help.

Posts: 1

Participants: 1

Read full topic

Problème with REST API call and space characters

$
0
0

@Victoria_Dimitrova wrote:

Hi,
Currently I have a problem with Dream Factory REST API call when a space is present into the API URL call.
I have a get request with a sort parameter that must to be send for SOLR server. This space I don’t know how it is converted, but it seems to arrive into not appropriate mananer.

curl -X GET
http://localhosts:81/api/v2/test/list/test?rows=10&sort=random_test%20desc
-H ‘X-DreamFactory-Api-Key: e115f92d18ba58e9a29389’
-H ‘X-DreamFactory-Session-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1’

Is it a Dream factory problem and is there a manner to surround this problem ?

Thanks

Posts: 1

Participants: 1

Read full topic

Cannot update field of type ObjectId in MongoDB

$
0
0

@foobarius wrote:

I’m trying to use the REST API to update a field in a record in MongoDB. The field is of type ObjectId, but the API refuses to accept the Extended JSON syntax for an ObjectId.

I’m using a PATCH request with the following body:

{
  "testVal": { "$oid": "5a31edc2743bb8f105db877d" }
}

The response I get is:

{
  "error": {
    "code": 500,
    "message": "The dollar ($) prefixed field '$oid' in 'testVal.$oid' is not valid for storage."
  }
}

I have tested the Extended JSON syntax for a Date (i.e. the “$date” syntax) and that works fine, so it seems to be a problem with ObjectIds specifically. I have also tried the mongo shell syntax of ObjectId(“5a31edc2743bb8f105db877d”), but that doesn’t work either.

Can anyone tell me how to update an ObjectId field?

Posts: 1

Participants: 1

Read full topic

Free Version Usage

$
0
0

@techspecguy wrote:

About 1.5 yrs ago I downloaded and built an API for an internal tool used by a few people on my team. I am now wanting to do this again, however I see in the feature listing that the free version does not have MSSQL server support listed.
Will it still work with SQLExpress ? Unfortunately, due to the limited usage of this particular project, it wont gain any budgetary traction in my organization, so if required to purchase a Gold or Silver product for this simple project, I wont be able to continue.
On that note, what are ballpark prices for those packages. I see no pricing listed.

Thank you,
Tony

Posts: 1

Participants: 1

Read full topic

REST calls failing. Caching issue?

$
0
0

@zynchro wrote:

I have been using DF for over an year now. But cannot seem to find my way around this one bug;
Calls seem to be working once after cache is cleared, then fails continuously.

[v2.7.0]

  1. Made a change on the V8JS script (on an existing endpoint) and when calling it, I get a 500 response.
  2. I go to config --> clear caches
  3. Go back to REST client and try the same endpoint = works!
  4. Call the same endpoint again = 500 (and continues there onward till another cache clear)

[v.2.10]
Started a fresh install (aws) and migrated the data over, etc.

  1. Make a call --> 500
  2. Clear caches
  3. Make call = works
  4. Make call = 500 (continues)

Any idea what might be the issue?

Posts: 1

Participants: 1

Read full topic


Dreamfactory Xamarin troubles

$
0
0

@Jonatan_Perales_Gorb wrote:

Hi i trying to do a cross platform app for my website i build using laravel, i install dreamfactory and i using xamarin to build my app i try the .net sdk but isnt valid for xamarin.forms for cross platform. Any one who works with xamarin and dreamfactory? I try with restsharp but instead of a json i get a xml like a response.Content and i try a lot ways to serialize and populate ina listview but nothing, i will be really glad if someone can help me. Thanks in advance

Posts: 1

Participants: 1

Read full topic

SQL Server schema

$
0
0

@Tomaz_Turk wrote:

I’m fairly new to Dreamfactory, it’s amazing sw and service.

When connecting to SQL Server, I have troubles with getting the list of DB tables, for instance under the Schema tag or elsewhere.

The tables in my SQL Server database don’t have specific shema, so they are under the ‘default’ dbo schema. However, Dreamfactory tries to get the list of tables with the T-SQL sentence like:

SELECT TABLE_NAME, TABLE_SCHEMA FROM [INFORMATION_SCHEMA].[TABLES] WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_SCHEMA = 'something'

where something is my database name (I can see the queries in the SQL Server Profiler). Since the schema is not my database name but dbo, Dreamfactory finds nothing.

This cannot be changed under Schema field in service settings, no matter what I use (empty field, ‘default’ or ‘dbo’). I also found this information, which is rather confusing - where should I put ‘true’ or ‘false’ to default_schema_only parameter?

I’m using Dreamfactory in the cloud.

Many thanks for your help …

Posts: 1

Participants: 1

Read full topic

Scripting Not Activated?!

$
0
0

@Robert_Staples wrote:

Hi All,

I’ve been using DF for years, in a very simple way, but I’ve recently decided to use it for a real full-scale project. I have a working REST API that woks great, but I need to use a server-side script on POST-ing to a specific endpoint.

I’ve enabled SCRIPT access in the role, and have applied the role as needed, I’ve marked the script as “active”, but the scripts aren’t running. No matter what I try, and I’ve been for days, I can’t seem to figure out why the scripts simply aren’t being executed.

Is there a hidden switch, or some back-end installation needed to enable the scripting engine? Nothing appears wrong in the GUI, but the scripts simply don’t run.

At this point, I have a single-line script that just prints something to the log, to prove that it’s running. Once that happens, then I think things will fall into place, but things just are’t being executed.

Thanks so much for any help! I’ve loved DreamFactory since I was in college and this is the first time I’ve ever gotten frustrated with it, so hopefully I’m simply missing something.

Rob S.

Posts: 1

Participants: 1

Read full topic

Trouble with API Docs for non-admin user 2.10

$
0
0

@dreams42 wrote:

Trying to give a non-admin user API doc access. When adjusting access on a role the only thing that seems to allow a user access to the API docs is selecting:

Service: the database service I created
Component: *

It will then show the user the API docs for the selected verbs.

If I try to limit the component to _table/* the live docs for the use says “No operations defined in spec!”

Service: the database service I created
Component: _table/*

I would have expected that the right way to give access to the API Docs would be

Service: APIDocs
Component: the database service I created

Which returns the following error to a user.

“You are logged in as a non-admin user. Your assigned role for the API Docs app will determine which active services you have access to”

How can a non-admin user be configured to see API documentation without being able to just have * access on the service?

Posts: 1

Participants: 1

Read full topic

Query on uuid field gives invalid text representation error

$
0
0

@vijayst wrote:

I am using DreamFactory on PostGres DB. With v2.5, I used to query or filter uuid fields like this:

application_id = ‘some-uuid-here’

But after migrating to v2.11, I am getting a 500 error. The message says invalid text representation.

Failed to retrieve records from ‘v_all_software_list_c’.\nSQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for uuid: “1bc24c63-8373-47e9-99f2-71f857b1eb8e_2b30fe87-8222-4f70-97fc-a8e21fd6b17e” (SQL: select count(1) as aggregate from “public”.“v_all_software_list_c” where “application_id” = 1bc24c63-8373-47e9-99f2-71f857b1eb8e_2b30fe87-8222-4f70-97fc-a8e21fd6b17e)

Posts: 2

Participants: 1

Read full topic

Viewing all 1524 articles
Browse latest View live