Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Crash after have empty response in some xhr request in pouchDB #7019
I have many crashes in app after some actions with pouchDB. I have problems to reproduce, but I have stack trace:
I looked to stack trace, and can found place where I have exception:
I figured out what the problem was and realized that sometimes the response in this request(xhr) comes in the form of an empty string (""). In this case, JSON.parse does not work correctly and an error occurs.
Please, add check to this situation in line -
I have problems to reproduce, but I have stack trace:
Please, if possible, fix this problem as quickly as possible, as this is the real crash for our users in application !
changed the title from
Crash after have empty responce in some xh request in pouchDB
Crash after have empty response in some xhr request in couchDB
Jan 17, 2018
Looks like you have done the investigation here and happy to accept a PR, there is a release coming soon and if the PR doesnt make it then this will be fixed by the switch to fetch anyway. If you have the time a test for this would be very helpful. Happy to help with it