Ghost: Incorrect origin when using mysql

Issue Summary

When using mySQL for database Ghost doesn’t work in the latest version. Admin shows 500 page throws console errors:

Error while processing route: posts.index Unexpected end of JSON input SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at o.deserialize (domain/ghost/assets/ghost.min-cb9cedd474b87c1e57a494b014040dcb.js:1027:13)
    at e.eachTransformedAttribute (domain/ghost/assets/vendor.min-b6c746e6d718a54841a93b04223a8094.js:13361:8)
   ...

When trying to call ghost/api/v2/admin/roles the following error is returned:

Request made from incorrect origin. Expected ‘domain’ received ‘’."

Everything works fine when using sqlite.

To Reproduce

  1. Fresh 2.3.0 install
  2. Run with mySQL

Technical details:

  • Ghost Version: 2.3.0
  • Node Version: 8.12
  • Browser/OS: Chrome (shouldn’t be relevant)
  • Database: mySQL

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

Sure, you’re welcome. nginx version was: nginx/1.14.0 (Ubuntu) in case you need it. Thanks and keep up the great work (except for the android app -.- )!