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
"Database encountered an unknown error" during replication on IOS #40
Comments
I tested Safari on IOS and got the same error. |
I tested Safari on Windows and also get the same error. |
I found out that the error is occurring because of the blob attachments. |
The exception that is thrown by new Blob(parts, properties) in createBlob() is:
|
:-( Disabling the replication of the DB with the blob attachment fixed the problem on Safary for Windows (which was throwing the same error as on IOS)...but I'm still getting the error on PhoneGap for IOS and Safary for IOS. So, we have two issues here:
|
Turned out that the app was doing concurrent replication (pulls) of the same database. This was causing the error on Safari and IOS, but not on Android. |
BTW, blobs are still generating an error when they are pulled on Safaty for Windows, Safari for IOS and PhoneGap for IOS (works fine on Android and Chrome). |
Hmm, I'm not really understanding what's going on here. Do you have a reproducible test case? I do know that there's a bug in iOS Safari WebView due to |
Pouchdb 5.1 is failing to replicate on IOS with error:
I also get this CORS warning:
AFAIU, there shouldn't be CORS warnings since I'm using:
Besides, other databases are pulled without errors (though they were reading and writing 0 docs).
I'm using PhoneGap with this user agent:
Same code works fine on Android, Chrome on Desktop.
Any hint?
Should I try an older version?
I'm using jsconsole and can run commands and do tests directly on the iPhone if necessary to debug.
The text was updated successfully, but these errors were encountered: