handyman5 / acd_fuse

FUSE filesystem driver for Amazon Cloud Drive
Other
187 stars 23 forks source link

Traceback in self.download = self.api.can_device_download() 403: Forbidden #4

Open jmturner opened 9 years ago

jmturner commented 9 years ago

I got this trying today's source. Do I have to add acd_fuse as a device in ACD somewhere?

markt@host:/usr/local/src/acd/acd_fuse$ sudo ./acd /mnt/acd -oemail=email@example.com,password=hackme Trying to login from cached sessionfile /tmp/acd_fuse/sessionfile Cached session failed; trying auth login Login successful; starting filesystem Traceback (most recent call last): File "./acd", line 464, in fs.main() File "./acd", line 87, in main self.download = self.api.can_device_download() File "build/bdist.linux-x86_64/egg/pyacd/api.py", line 146, in can_device_download File "build/bdist.linux-x86_64/egg/pyacd/connection.py", line 32, in do_get File "build/bdist.linux-x86_64/egg/pyacd/connection.py", line 85, in _do_request pyacd.exception.PyAmazonCloudDriveError: PyAmazonCloudDriveError: https://www.amazon.com/clouddrive/api/?deviceId.deviceType=ubid&ContentType=JSON&deviceId.deviceSerialNumber=184-1273477-9808429&Operation=canDeviceDownload&customerId=++%3A+%270%27%2C%0A++++++++++++++++++++++++++++++++campaignId++%3A+%27PRICING_2015%27%2C+%0A++++++++++++++++++++++++++++++++deviceClass+%3A+%27web%27%0A++++++++++++++++++++++++++++%7D%29%2C%0A++++++++++++++++beforeSend++%3A+function%28xhr%29+%7B%0A++++++++++++++++++++xhr.setRequestHeader%28%0A++++++++++++++++++++xhr.setRequestHeader%28%27x-Cookie%27%2C+%27session-id-time%3D2082787201l%3B+skin%3Dnoskin%3B+wl-uid%3D189-4177884-0612365%3B+x-wl-uid%3D1xwiGhsD%2FKjYx9veILAEhqDbbhjjQkS%2BM98qnuyGwnUSvL3Y7us40F%2BewBuqI2HfPm%2BhHYoBetDk%3D%3B+nav2%3D%3B+session-id%3D189-4177884-0612365%3B+ubid-main%3D184-1273477-9808429%27%29%3B%0A++++++++++++++++%7D%2C%0A++++++++++++++++xhrFields+++%3A+%7B+withCredentials%3A+true+%7D%2C%0A++++++++++++++++complete++++%3A+cdClose%0A++++++++++++%7D%29%3B%0A++++++++%7D%0A%0A++++++++function+triggerClose%28%29+%7B%0A++++++++++++cdAcknowledge%28%29%3B%0A++++++++%7D%0A++++%3C%2Fscript&_=1427824663 {'X-amzn-sessionid': '189-4177884-0612365'} 403:Forbidden

comptonqc commented 9 years ago

You need to update the submodule. Change to the pyacd directory and run git pull origin master.

macsrok commented 9 years ago

I'm having the same issue.

I preformed cd pyacd and git submodule update --init --recursive and then git pull origin master

my output:

storage@storage:~/acd_fuse$ ./acd /media/acd Trying to login from cached sessionfile /tmp/acd_fuse/sessionfile Cached session failed; trying auth login Login successful; starting filesystem Traceback (most recent call last): File "./acd", line 464, in fs.main() File "./acd", line 87, in main self.download = self.api.can_device_download() File "build/bdist.linux-x86_64/egg/pyacd/api.py", line 146, in can_device_download File "build/bdist.linux-x86_64/egg/pyacd/connection.py", line 32, in do_get File "build/bdist.linux-x86_64/egg/pyacd/connection.py", line 85, in _do_request pyacd.exception.PyAmazonCloudDriveError: PyAmazonCloudDriveError: https://www.amazon.com/clouddrive/api/?deviceId.deviceType=ubid&ContentType=JSON&deviceId.deviceSerialNumber=182-9434404-1855461&Operation=canDeviceDownload&customerId=++%3A+%270%27%2C%0A++++++++++++++++++++++++++++++++campaignId++%3A+%27PRICING_2015%27%2C+%0A++++++++++++++++++++++++++++++++deviceClass+%3A+%27web%27%0A++++++++++++++++++++++++++++%7D%29%2C%0A++++++++++++++++beforeSend++%3A+function%28xhr%29+%7B%0A++++++++++++++++++++xhr.setRequestHeader%28%0A++++++++++++++++++++xhr.setRequestHeader%28%27x-Cookie%27%2C+%27session-id-time%3D2082787201l%3B+skin%3Dnoskin%3B+wl-uid%3D192-6072206-8943001%3B+x-wl-uid%3D15U1C191Bx%2F4WxHRLAeYy%2BQrkGUWo925jSpzsRUyWK2rnssDxzhuYPqlr8M46VDCtgOcQc84TzkA%3D%3B+nav2%3D%3B+session-id%3D192-6072206-8943001%3B+ubid-main%3D182-9434404-1855461%27%29%3B%0A++++++++++++++++%7D%2C%0A++++++++++++++++xhrFields+++%3A+%7B+withCredentials%3A+true+%7D%2C%0A++++++++++++++++complete++++%3A+cdClose%0A++++++++++++%7D%29%3B%0A++++++++%7D%0A%0A++++++++function+triggerClose%28%29+%7B%0A++++++++++++cdAcknowledge%28%29%3B%0A++++++++%7D%0A++++%3C%2Fscript&_=1427850057 {'X-amzn-sessionid': '192-6072206-8943001'} 403:Forbidden

macsrok commented 9 years ago

I had installed pyacd from google code. uninstalling it using sudo pip uninstall amazon-cloud-drive fixed my problem. Now lets see how fast I can upload 5TB worth of video.

miklosandras commented 9 years ago

I have the same issue:

biosz@mail:~$ acd /home/biosz/amazon/ -oemail=name@mymail.com,password=passwd Trying to login from cached sessionfile /tmp/acd_fuse/sessionfile Login successful; starting filesystem Traceback (most recent call last): File "/bin/acd", line 462, in fs.main() File "/bin/acd", line 89, in main self.download = self.api.can_device_download() File "/usr/local/lib/python2.7/dist-packages/amazon_cloud_drive-0.1.2-py2.7.egg/pyacd/api.py", line 146, in can_device_download resp_json=json.loads(pyacd.do_get(end_point)) File "/usr/local/lib/python2.7/dist-packages/amazon_cloud_drive-0.1.2-py2.7.egg/pyacd/connection.py", line 32, in do_get return _do_request(req,None) File "/usr/local/lib/python2.7/dist-packages/amazon_cloud_drive-0.1.2-py2.7.egg/pyacd/connection.py", line 85, in _do_request e.msg pyacd.exception.PyAmazonCloudDriveError: PyAmazonCloudDriveError: https://www.amazon.com/clouddrive/api/?deviceId.deviceType=ubid&ContentType=JSON&deviceId.deviceSerialNumber=185-0515549-5788160&Operation=canDeviceDownload&customerId=++%3A+%270%27%2C%0A++++++++++++++++++++++++++++++++campaignId++%3A+%27PRICING_2015%27%2C+%0A++++++++++++++++++++++++++++++++deviceClass+%3A+%27web%27%0A++++++++++++++++++++++++++++%7D%29%2C%0A++++++++++++++++beforeSend++%3A+function%28xhr%29+%7B%0A++++++++++++++++++++xhr.setRequestHeader%28%0A++++++++++++++++++++xhr.setRequestHeader%28%27x-Cookie%27%2C+%27session-id-time%3D2082787201l%3B+skin%3Dnoskin%3B+wl-uid%3D191-0737927-8631831%3B+x-wl-uid%3D1qj2BjMWd9q4%2FOoVe%2BBri9zKj7RNO4Eg3%2B%2FZ6W0ZGXV4IZ6otjHPt%2FhXFP7XEHFItaOPZ63RvBlY%3D%3B+nav2%3D%3B+session-id%3D191-0737927-8631831%3B+session-token%3DvnSgM3K5gdrptcBpY8oCh%2BvBGz%2B29MIRzBdH6GLFSdji8L0MxsMYV%2FpP8SWnOKG0xj1yeoLQaLNfe6lqAzG2l63b6mN%2FxgPz3t57IjcQ%2BCQpmLRePWGnHEvMc96z%2BpH76d06ffezC3%2FtwApw%2Bc148tBrd%2FKWqpU5uRvWJFcj9po8NFkAPV2YolIg9Xi0lduYQOu8zFQqnsYC14jivMIkKJOFbWBsDK4m%2BD%2FEkIqjAh7wnNcPKlUGiywECKX2B2yT%3B+ubid-main%3D185-0515549-5788160%27%29%3B%0A++++++++++++++++%7D%2C%0A++++++++++++++++xhrFields+++%3A+%7B+withCredentials%3A+true+%7D%2C%0A++++++++++++++++complete++++%3A+cdClose%0A++++++++++++%7D%29%3B%0A++++++++%7D%0A%0A++++++++function+triggerClose%28%29+%7B%0A++++++++++++cdAcknowledge%28%29%3B%0A++++++++%7D%0A++++%3C%2Fscript&_=1429606744 {'X-amzn-sessionid': '191-0737927-8631831'} 403:Forbidden biosz@mail:~$

Do we have a fix for this? I can pay a few $ for the fix.

PaulAnnekov commented 9 years ago

The same bug for me.

AlexCzar commented 9 years ago

I have the same problem exactly. Are there any news or workarounds? PS: I'm using pyacd hosted here, downloaded it as submodule as specified by @macsrok UPD: moment went away after I removed all traces of previously installed original pyacd from my system, there were leftovers in /usr/lib/python2.7/site-packages. Now I only have problem #10

trfr3ak commented 9 years ago

I installed it through google-code and facing the same issues. How excactly is the right way to install pyacd?

mtitus83 commented 9 years ago

Had this issue also due to a previous installation of amazon-cloud-drive, can confirm @AlexCzar suggestion worked, had to remove from /usr/local/lib/python2.7/dist-packages/