After having set up the Dropbox module to use the Dropbox service, I'm getting the following error when trying to send a file to myself as a test:
Cannot extract token! (form action=https://dl-web.getdropbox.com/upload)
Note my site isn't using SSL and I've set "dropbox_allow_insecure" to "true" in my settings.php file.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 465902_cannot_extract_token.patch | 12.38 KB | deviantintegral |
Comments
Comment #1
remi commentedA node about the host ID: you can no longer get it from the URL launched by the Dropbox icon menu. (At least, that is the case for Dropbox 0.6.513 on my Mac.) However, there is a Python script that can display your host ID, and it should work for Windows, Linux, and Mac.
See http://forums.getdropbox.com/topic.php?id=6527 (requires log-in) and http://wiki.getdropbox.com/DropboxAddons/PythonScriptToDisplayConfig.
Comment #2
deviantintegral commentedIt isn't working on my site either, which was working fine earlier. So I'm guessing that Dropbox changed something which breaks the uploader.
Comment #3
deviantintegral commentedIt looks like you can no longer log in with https://www.getdropbox.com/tray_login?hostid=. Either they've disabled this method of access completely, or moved it somewhere not obvious. So, either the module will have to change to store usernames / passwords (which sucks from a security standpoint), or we'll have to find out an equivalent method to log in.
Comment #4
deviantintegral commentedI tested hardcoding in my username / password, and I was able to upload a file. So now just waiting for a response to http://forums.getdropbox.com/topic.php?id=9356&replies=1 to see what the best way to proceed is.
Comment #5
remi commentedWhile they get their API in place, maybe I can simply hardcode the username and password like you did, or store them in my settings.php file. I didn't look further into the module's code yet. Can you share with us where you did to hardcoded yours?
Comment #6
deviantintegral commentedHere is the patch which I will be committing shortly. I'll be releasing a new stable version once everything's committed.
Comment #8
KrisBulman commentedi notice your website gives a similar error when attempting to send a file:
"Failed to upload the file. Dropbox returned the following error: Cannot extract token! (form action=https://dl-web.getdropbox.com/upload)"
Comment #9
deviantintegral commentedYes - I hadn't updated my site yet to the latest DropBoxUploader version. I've now updated it.