beemdevelopment / Aegis

A free, secure and open source app for Android to manage your 2-step verification tokens.
https://getaegis.app
GNU General Public License v3.0
8.36k stars 354 forks source link

I can't import my JSON File anymore... #1403

Closed ghost closed 6 days ago

ghost commented 6 days ago

Hello,

i can't import my JSON Data in Import like before since I flashed LineageOS...It works on my other Stock Android Phone but I don't know why it don't work anymore or what to do...It says that an error did happen. Here is it:

com.beemdevelopment.aegis.importers.DatabaseImporterException: com.beemdevelopment.aegis.vault.VaultFileException: org.json.JSONException: Value <!doctype of type java.lang.String cannot be converted to JSONObject

Please help me, because I can't login anywhere anymore...And I need it daily, so it is important for me. I hope you can help me. Thanks!

michaelschattgen commented 6 days ago

Value <!doctype of type java.lang.String cannot be converted to JSONObject

This makes me think you're trying to import a html file.

ghost commented 6 days ago

Value <!doctype of type java.lang.String cannot be converted to JSONObject

This makes me think you're trying to import a html file.

Oh, as I said it is an JSON File which I did get, when exporting to save my Data. It worked everytime but I don't know why not anymore. It says: by reading the data an mistake happened...

michaelschattgen commented 6 days ago

I highly doubt it's an actual json file that has been exported by Aegis. Have you tried changing its extension to .html and open it manually? It's most likely a web page.

ghost commented 6 days ago

I found the Mistake haha! It was because I downloaded the JSON File from an wrong Browser! Happy that it worked again!