MDKPredator/degoo_drive

Docker application fails with error even when authenticating using tokens

preethaml7 opened this issue · 2 comments

2022-06-18 03:28:13.802 MainThread: [__main__] ##### Initializating Degoo drive #####
2022-06-18 03:28:13.802 MainThread: [__main__] Local mount point:   /home/degoo
2022-06-18 03:28:13.802 MainThread: [__main__] Cache size:          15728640 kb
2022-06-18 03:28:13.802 MainThread: [__main__] Root Degoo path:     /
2022-06-18 03:28:13.802 MainThread: [__main__] Refresh interval:    600 seconds
2022-06-18 03:28:13.802 MainThread: [__main__] Flood control:       Disabled
2022-06-18 03:28:13.802 MainThread: [__main__] Change hostname:     Disabled
2022-06-18 03:28:13.803 MainThread: [__main__] Search split files:  Disabled
2022-06-18 03:28:13.803 MainThread: [__main__] Mode:                lazy
2022-06-18 03:28:13.803 MainThread: [__main__] Reading Degoo content from directory /
2022-06-18 03:28:13.806 MainThread: [urllib3.connectionpool] Starting new HTTPS connection (1): production-appsync.degoo.com:443
2022-06-18 03:28:14.078 MainThread: [urllib3.connectionpool] https://production-appsync.degoo.com:443 "POST /graphql HTTP/1.1" 200 None
2022-06-18 03:28:14.080 MainThread: [__main__] _add_path for 0, /
Traceback (most recent call last):
  File "/degoo_drive/fuse_degoo.py", line 959, in <module>
    main()
  File "/degoo_drive/fuse_degoo.py", line 919, in main
    operations.load_degoo_content()
  File "/degoo_drive/fuse_degoo.py", line 794, in load_degoo_content
    self._refresh_path()
  File "/degoo_drive/fuse_degoo.py", line 740, in _refresh_path
    attr = self._get_degoo_attrs(degoo_element['FilePath'])
  File "/degoo_drive/fuse_degoo.py", line 243, in _get_degoo_attrs
    entry.st_ctime_ns = int(element['LastModificationTime']) * 1e9
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Hello, I have built the docker image from the provided instructions by cloning the repository. And I have tried running the application via docker un args providing login and refresh token and also by editing the keys.json file before building my docker image. In both cases, the app crashes and stops with the above error! can you please look into this?

Also, I wanted to reach out in case you needed any help in maintaining the documentation/building docker images and publishing them. I could help! I am interested in this project and have some experience building docker images.

It seems that some files do not have the LastModificationTime attribute. I will try to put a check as soon as I can.

@preethaml7 I have uploaded a fix