fullstack-tutorial icon indicating copy to clipboard operation
fullstack-tutorial copied to clipboard

Uncaught TypeError: Cannot read property 'markMutationError' of undefined

Open lawrenceforsytheiii opened this issue 6 years ago • 3 comments

This issue should be logged here as it has to do with this tutorial. Specifically deploying the server portion using Zeit Now v1 instead of v2: #https://github.com/apollographql/apollo-client/issues/4166

Special thanks to @lifeiscontent for writing out the initial issue.

lawrenceforsytheiii avatar Nov 28 '18 23:11 lawrenceforsytheiii

Still having further issues with mutations from deployed server on Zeit Now v1 (bookTrips, cancelTrips, login). SequelizeDatabaseError:

Unhandled rejection SequelizeDatabaseError: SQLITE_READONLY: attempt to write a readonly database at Query.formatError (/home/nowuser/src/node_modules/sequelize/lib/dialects/sqlite/query.js:423:16) at Statement.afterExecute (/home/nowuser/src/node_modules/sequelize/lib/dialects/sqlite/query.js:119:32) at Statement.replacement (/home/nowuser/src/node_modules/sqlite3/lib/trace.js:19:31)

lawrenceforsytheiii avatar Nov 29 '18 01:11 lawrenceforsytheiii

running into the same issue

pyramation avatar Nov 29 '18 13:11 pyramation

Me too. The login works with the [email protected] user from the tutorial. Maybe because the login was done before the deployment to NOW. If I use a new user I get the following Error: "path": [ "login" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "exception": { "name": "SequelizeDatabaseError", "parent": { "errno": 8, "code": "SQLITE_READONLY", "sql": "INSERT INTO users (id,createdAt,updatedAt,email) VALUES (NULL,'2019-01-03 12:16:06.503 +00:00','2019-01-03 12:16:06.503 +00:00','[email protected]');" }, "original": { "errno": 8, "code": "SQLITE_READONLY", "sql": "INSERT INTO users (id,createdAt,updatedAt,email) VALUES (NULL,'2019-01-03 12:16:06.503 +00:00','2019-01-03 12:16:06.503 +00:00','[email protected]');" }, "sql": "INSERT INTO users (id,createdAt,updatedAt,email) VALUES (NULL,'2019-01-03 12:16:06.503 +00:00','2019-01-03 12:16:06.503 +00:00','[email protected]');", "stacktrace": [ "SequelizeDatabaseError: SQLITE_READONLY: attempt to write a readonly database", " at Query.formatError (/home/nowuser/src/node_modules/sequelize/lib/dialects/sqlite/query.js:423:16)", " at Statement.afterExecute (/home/nowuser/src/node_modules/sequelize/lib/dialects/sqlite/query.js:119:32)", " at Statement.replacement (/home/nowuser/src/node_modules/sqlite3/lib/trace.js:19:31)" ]

hammer3 avatar Jan 03 '19 12:01 hammer3