MartinSGill / TodoTxtJs

A Javascript web app implementation of TodoTxt
72 stars 29 forks source link

todo.txt from Dropbox doesn't load #55

Open dev4223 opened 10 years ago

dev4223 commented 10 years ago

Get a "Uncaught TypeError: Cannot read property 'versionTag' of undefined" here in app.js in line 941

_this._versionTag = stat.versionTag;
dev4223 commented 10 years ago

Possible fix maybe (in src/js/storage/storage_dropbox.ts line 107)

if (typeof(stat) !== "undefined")
                this._versionTag = stat.versionTag;
MartinSGill commented 10 years ago

According to the dropbox api versionTag should always exist.

I cannot reproduce this at all. I tried it for deleted files, or renamed files and I even tried it for a file that never existed and the page correctly display the error "File not found", or "file has been deleted".

Can you still reproduce this? How do you reproduce it?

dev4223 commented 10 years ago

When I try to load my todo.txt File from Dropbox I get this error. I use another app (SimpleTask) on my android devices, so my todo.txt file resides under /Apps/SimpleTask/. I've tried it with a fresh installation, saved the empty file now to /Todo/todo.txt and then press the LOAD-Button and get the error. I also get the error when I restart the browser and start the app.

dev4223 commented 10 years ago

Ah, it's a browser issue. Got the error in Google Chrome. Firefox works fine.

MartinSGill commented 10 years ago

I test primarily in Chrome, but I think I see the problem. The file failed to load the first time, then you clicked load again and you got the error? That would make sense.

dev4223 commented 10 years ago

Also when I open the browser it fails to load.

audiovideodisco commented 10 years ago

I have a similar problem: Chrome can't Load the todo.txt file, while Firefox can. Don't see any error message [and don't know how to produce one]. Save and Import work in both browsers.

anoduck commented 9 years ago

Perhaps an older issue. But I edited the dropbox_key.js file and inserted my key. Checked the permissions of that file, which were fine. Regardless, the dropbox storage option is not present in the dropdown menu, and appears to be unavailable. I have scanned over my error logs in apache and did not see anything. Is there a package that I am missing? --P.S. Great web app. Love it so far.

MartinSGill commented 9 years ago

If you're not getting dropbox as an option, then you should be seeing a message in the console (of the browser)

WARN: 'Dropbox support disabled. No dropbox key found.'

and you should be seeing a 404 error in your network traffic (in the browser and apache):

[Sat, 08 Aug 2015 20:57:36 GMT] "GET /js/dropbox_key.js?_=1439067456027" Error (404): "Not found"