Git Product home page Git Product logo

Comments (9)

todda48 avatar todda48 commented on May 18, 2024

This is a bug that we'll fix ASAP. The API used to allow creating a single record without the resource array wrapper. This is no longer allowed, and the JavaScript sample app needs to be changed to use the array format. You can fix it yourself by changing the AJAX calls to use array format.

{"name":"Joe"} ---> {"resource":[{"name":"Joe"}]}

from dreamfactory.

carstenjacobsen avatar carstenjacobsen commented on May 18, 2024

The bug has been fixed and both the code in the repo and package have been updated.

from dreamfactory.

thallstein avatar thallstein commented on May 18, 2024

Hi Carsten,

I used Bitnami to install DreamFactory on AWS. Could you provide inx or point me to a link for how to update the AWS instance?

Thanks so much.

Trevor

from dreamfactory.

todda48 avatar todda48 commented on May 18, 2024

http://wiki.dreamfactory.com/DreamFactory/Installation#Upgrade

from dreamfactory.

carstenjacobsen avatar carstenjacobsen commented on May 18, 2024

Hi Trevor,

The bug has been fixed and you can get the updated package from the repo
(or import it again from your instance):
https://github.com/dreamfactorysoftware/javascript-sdk/blob/master/add_javascript.dfpkg

Thanks,
Carsten

Carsten Jacobsen | Sr. Software Engineer | DreamFactory |t. 408.915.7815 |
@dfsoftwareinc | [image: DreamFactory] http://www.dreamfactory.com/

On Mon, Mar 14, 2016 at 4:14 PM, thallstein [email protected]
wrote:

Hi Carsten,

I used Bitnami to install DreamFactory on AWS. Could you provide inx or
point me to a link for how to update the AWS instance?

Thanks so much.

Trevor


Reply to this email directly or view it on GitHub
#46 (comment)
.

from dreamfactory.

thallstein avatar thallstein commented on May 18, 2024

Quick question - I deleted the app and then went to apps > import. When I proceed with the import I get an error message: "Failed to create records in 'contact'. SQLSTATE[23000]: Integrity constraint violation: 19 PRIMARY KEY must be unique

import error

from dreamfactory.

benbusse avatar benbusse commented on May 18, 2024

you probably need to drop the tables in the schema tab, then import the app again. when you import the app again, it's importing the schema, but if the schema is already there then you'll have collisions.

from dreamfactory.

thallstein avatar thallstein commented on May 18, 2024

Yah – I just did that. How does one import a 2nd example app? I wanted to look at the angular js example, but presumably it’s going to complain about this same thing.

From: Ben Busse <[email protected]mailto:[email protected]>
Reply-To: dreamfactorysoftware/dreamfactory <[email protected]mailto:[email protected]>
Date: Tuesday, March 15, 2016 at 1:20 PM
To: dreamfactorysoftware/dreamfactory <[email protected]mailto:[email protected]>
Cc: Trevor z Hallstein <[email protected]mailto:[email protected]>
Subject: Re: [dreamfactory] index.html in JavaScript Address Book Example Invalid XML Payload Error (#46)

you probably need to drop the tables in the schema tab, then import the app again. when you import the app again, it's importing the schema, but if the schema is already there then you'll have collisions.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-197004921

from dreamfactory.

benbusse avatar benbusse commented on May 18, 2024

i believe each sample app uses the same schema (i.e. schema isn't namespaced for each example app). you can try importing a second one, but i think you need to drop the schema, then import the second app.

from dreamfactory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.