-
Notifications
You must be signed in to change notification settings - Fork 23
AttributeError: 'NoneType' object has no attribute 'encode' #9
Comments
I'm also getting this error. It was able to upload one, but then not the second one just like in your stack trace. |
If I disable |
I think I figured it out! amazon-s3-backup.py upload_file method retrieves the snapshot json information from supervisorapi.py. In HA using something like the Terminal add-on you can run If you look in the S3 properties for one of the files uploaded, you can see this information there. None of it is actually necessary, so you can completely remove the lookup of that field. The more correct approach to preserve this functionality would be to get the I'm happy to submit a PR here but it doesn't appear that @gdrapp is paying attention to the PRs here because there are other critical PR's that haven't been merged. The aforementioned PR being from a repo that I actually forked, not this one. In any case, I'll be using my fork for now and if I don't hear from @gdrapp in a while I'll just create a new repo with his code (credited of course) that I'll try to actively maintain and incorporate all the outstanding PRs here. Also, I'm not a python guy, so if anyone knows how to actually get the |
@ScottG489 good find! |
Hello,
I am trying to get my backups into S3 however when I try and run the add-on I get the following error:
I thought it was just one bad apple, but deleted that one, and then another came up with an issue.
If you need anymore info please let me know
The text was updated successfully, but these errors were encountered: