Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'An error occurred, could not delete Collection' [admin-ui] on real-world-vendure #298

Closed
agustif opened this issue Apr 6, 2020 · 1 comment
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@agustif
Copy link
Contributor

agustif commented Apr 6, 2020

Describe the bug
I can't delete default seeded collections from real-world-vendure.

I get a notification on the AdminUI: An error occurred, could not delete Collection
Frontend WS Error:
sockjs.js:2999 WebSocket connection to 'ws://localhost:3000/sockjs-node/358/4upa4qjb/websocket' failed: WebSocket is closed before the connection is established.
Log Errors:

[run:server] error 4/6/20, 1:25 PM - [TypeORM] Query error: Error: SQLITE_CONSTRAINT: FOREIGN KEY constraint failed, "DELETE FROM "collection" WHERE "id" = ?" -- [4]
[run:server] error 4/6/20, 1:25 PM - [TypeORM] Query error: Error: SQLITE_CONSTRAINT: FOREIGN KEY constraint failed, "DELETE FROM "collection" WHERE "id" = ?" -- [7]
[run:server] error 4/6/20, 1:25 PM - [Vendure Server] Cannot GET /sw.js
[run:server] error 4/6/20, 1:26 PM - [Vendure Server] Cannot GET /sw.js
[run:server] error 4/6/20, 1:26 PM - [TypeORM] Query error: Error: SQLITE_CONSTRAINT: FOREIGN KEY constraint failed, "DELETE FROM "collection" WHERE "id" = ?" -- [4]
[run:server] error 4/6/20, 1:27 PM - [TypeORM] Query error: Error: SQLITE_CONSTRAINT: FOREIGN KEY constraint failed, "DELETE FROM "collection" WHERE "id" = ?" -- [4]

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Collections List'
  2. Click on 'three vertical dots (more options?) -> delete'
  3. Click delte on modal confirmation UI
  4. See error

Expected behavior
The collection should be deleted? Maybe it's childs too.?

Environment (please complete the following information):

  • @vendure/core version: v0.10.0
  • Nodejs version 12.13
  • Database (mysql/postgres etc): postgres (PostgreSQL) 12.2
@agustif agustif added the type: bug 🐛 Something isn't working label Apr 6, 2020
@michaelbromley
Copy link
Member

Duplicate of #297

@michaelbromley michaelbromley marked this as a duplicate of #297 Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants