Skip to content

Instantly share code, notes, and snippets.

@halfdan
Created November 26, 2013 15:13
Show Gist options
  • Save halfdan/7660071 to your computer and use it in GitHub Desktop.
Save halfdan/7660071 to your computer and use it in GitHub Desktop.
1) Import 000 imports data from 001:
Error: done() invoked with non-Error: Error importing data: RejectionError: duplicate key value violates unique constraint "posts_slug_unique"</br>RejectionError: current transaction is aborted, commands ignored until end of transaction block
at /home/vagrant/code/Ghost/node_modules/mocha/lib/runnable.js:196:38
at tryCatch1 (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_resolvePromise [as _resolvePromise] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:631:13)
at Promise$_doResolveAt [as _doResolveAt] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:821:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:36:14)
at process._tickCallback (node.js:415:13)
2) Import 001 imports data from 001:
Error: done() invoked with non-Error: Error importing data: RejectionError: duplicate key value violates unique constraint "posts_slug_unique"</br>RejectionError: current transaction is aborted, commands ignored until end of transaction block
at /home/vagrant/code/Ghost/node_modules/mocha/lib/runnable.js:196:38
at tryCatch1 (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_resolvePromise [as _resolvePromise] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:631:13)
at Promise$_doResolveAt [as _doResolveAt] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:821:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:36:14)
at process._tickCallback (node.js:415:13)
3) Import 001 doesn't import invalid post data from 001:
actual expected
"Error importing data: PostRejectionError: titlevalue maximumtoo lengthlong isfor type character varying(150)</br>RejectionError: characters."current transaction is aborted, commands ignored until end of transaction block"
at Object.Assertion.eql (/home/vagrant/code/Ghost/node_modules/should/lib/should.js:365:10)
at /home/vagrant/code/Ghost/core/test/unit/import_spec.js:187:30
at tryCatch1 (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_resolvePromise [as _resolvePromise] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:631:13)
at Promise$_doResolveAt [as _doResolveAt] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:821:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:36:14)
at process._tickCallback (node.js:415:13)
4) Import 001 doesn't import invalid settings data from 001:
actual expected
"Error importing data: SettingRejectionError: duplicate key cannotvalue beviolates blankunique constraint \"posts_slug_unique\"</br>RejectionError: current transaction is aborted, commands ignored until end of transaction block"
at Object.Assertion.eql (/home/vagrant/code/Ghost/node_modules/should/lib/should.js:365:10)
at /home/vagrant/code/Ghost/core/test/unit/import_spec.js:237:30
at tryCatch1 (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_resolvePromise [as _resolvePromise] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:631:13)
at Promise$_doResolveAt [as _doResolveAt] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/promise.js:821:10)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/home/vagrant/code/Ghost/node_modules/bookshelf/node_modules/bluebird/js/main/async.js:36:14)
at process._tickCallback (node.js:415:13)
Warning: Use --force to continue.
Aborted due to warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment