nolanlawson / pouchdb-electron

PouchDB for Electron (formerly Atom Shell)
128 stars 7 forks source link

"Unexpected token in JSON at position 51" when running inside packaged Electron app #8

Open linusthiel opened 7 years ago

linusthiel commented 7 years ago

We are using PouchDB-browser inside an Electron packaged app.

linusthiel commented 7 years ago

We tried to reconfigure it to use different databases. It still gives the same error in the packaged Electron, when we do db.get(id).

Electron version 1.4.15 win32-ia32. PouchDB-browser version 6.1.1 Windows 10

nolanlawson commented 7 years ago

So this only happens on Windows, but it happens in multiple adapters - IndexedDB, WebSQL, etc.? I'm wondering if it's a bug in Chromium for Windows.

Can you provide a small test case to reproduce, e.g. a sample project?

linusthiel commented 7 years ago

I haven't tried WebSQL but I will. It's some weird thing definitely because it worked before, and we're not sure what has changed. Will try to make a test case when I get a minute to work on it!

On Jan 25, 2017 5:21 PM, "Nolan Lawson" notifications@github.com wrote:

So this only happens on Windows, but it happens in multiple adapters - IndexedDB, WebSQL, etc.? I'm wondering if it's a bug in Chromium for Windows.

Can you provide a small test case to reproduce, e.g. a sample project?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nolanlawson/pouchdb-electron/issues/8#issuecomment-275172395, or mute the thread https://github.com/notifications/unsubscribe-auth/AXjYx5zxZgkHWBkuQHUeZMW2ndIFru8fks5rV4StgaJpZM4LtQWD .