-
Notifications
You must be signed in to change notification settings - Fork 89
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
iOS contact database not found - potential fix in description #76
Comments
I currently don't have access to the latest iOS WhatsApp. Once it has been confirmed, I will make changes to the code. Thanks for your report and the potential fix anyway! |
@achalddave how did you know that this is the new db ? i cant find 016df2e52e5bfaa000f98a1dbe5c40cd6dc7f657 with the version 17.2.1 |
I'm sure there's a better way, but I went to the path to my Manifest.db, which was in a path like:
This printed a bunch of tables, and I looked for one which said |
This is the correct way to find a file inside an iOS backup. |
thank you for your reply. I just looked throu all files with .sqlite and i cant find any db with contacts. |
I get the same error "Contact database not found". Running the program with the default or the suggested fix results in the same error. I couldn't find any ContactsV2 or anything containing 'contacts' related to WhatsApp (just blockedContacts.dat). |
@Rerebla The file with blockedContacts.dat was the only one that appeared, but it used it and worked. After following the steps of searching it with sqlite3, the complete line is this: You only need the first part: The file to modify, like I have the installation of python in the default directory, the path is: My WhatsApp version is 23.23.79 |
@angelbanderasudg it's solved the issue but after I have another issue
|
please merge @angelbanderasudg 's fix |
I notice that your handler is for Android. Please open a separate issue for that as this issue exclusively appear in iOS. |
A workaround has been implemented in #106. |
|
I created an iOS (17.6.1) backup with WhatsApp 2.24.17.78. I do see the ContactsV2.sqlite file. Not sure how to reproduce the issue. Any ideas? |
Hi @ReclusiveEagle, I took a look at your solution and it does not seem right to me.
However, the contact file should be a SQLite database, while your solution seems to be extracting a non-SQLite file—specifically, an audio file in this case. |
for whatever reason, the hash from the audio file works. this has allowed me to use this library without throwing any errors |
That might indeed help resolving the contact database not found error (I haven't test it), but it's not really a proper solution. Instead, the contact database could treated as optional, if iOS backups can't guarantee its inclusion. |
The commit fe88f1b should allow the tool to proceed even if the database is not presented. |
The contact database may not be included in the iOS backup. Since there are no alternative files to replace it, the commit fe88f1b is deemed an appropriate solution. This fix was released in 0.10.5. |
Thanks for this great tool! I received the following error when using this with the latest version of WhatsApp: "Contact database not found." I think the uuid(?) for the contacts db in whatsapp may have changed.
Changing this line:
WhatsApp-Chat-Exporter/Whatsapp_Chat_Exporter/utility.py
Line 299 in c27f5ee
from
to
fixed the issue for me. I'm not sure if this is a general fix, so I'm not submitting a PR, but opening this issue in case anyone else runs into it.
The text was updated successfully, but these errors were encountered: