KnugiHK / WhatsApp-Chat-Exporter

A customizable Android and iOS/iPadOS WhatsApp database parser that will give you the history of your WhatsApp conversations in HTML and JSON. Android Backup Crypt12, Crypt14, Crypt15, and new schema supported.
https://wts.knugi.dev/
MIT License
518 stars 76 forks source link

OSError: [Errno 22] Invalid argument for iOS #75

Open ishaand opened 7 months ago

ishaand commented 7 months ago

ran the code on Windows 11 (PowerShell 7.3.9) for unencrypted backup of iPhone.

`Extracting WhatsApp files...(156566/156566)

Processing contacts...(2289)

Traceback (most recent call last):94)

File "C:\Users\user\AppData\Local\Temp\ONEFIL~1__main__.py", line 389, in

File "C:\Users\user\AppData\Local\Temp\ONEFIL~1__main__.py", line 312, in main

File "C:\Users\user\AppData\Local\Temp\ONEFIL~1\Whatsapp_Chat_Exporter\extract_iphone.py", line 104, in messages

File "C:\Users\user\AppData\Local\Temp\ONEFIL~1\Whatsapp_Chat_Exporter\data_model.py", line 62, in init

OSError: [Errno 22] Invalid argument`

Please help and guide. How can I help debug?

ishaand commented 7 months ago

Some say that it could be caused by a full disk - lack of storage. I'll clear more space on the computer and try again.

ishaand commented 7 months ago

I ran it again. I believe it is unrelated to storage. Also, earlier, with less storage I used to get OSError: [Errno 28] No space left on device

KnugiHK commented 7 months ago

Hi. It may be related to the time passed into the datetime.fromtimestamp function. You can print out the time variable to see what's inside.