Thanks for all the help. After some troubleshooting, realised the problem was due to my VPN connection (proxy settings). All's good now!
Hi,
I'm trying to upload a .jpg from my yun's sd card to dropbox but everytime i run the python script to upload the image on SSH (Openwrt), it gives me a connection time out error.
I've followed the tutorial from http://twilioinc.wpengine.com/2015/02/arduino-powered-photobooth-arduino-yun-a-webcam-and-dropbox.html on how to configure the dropbox upload.
Here's the error messages I'm been receiving.
Help is greatly appreciated! =)
Error Messages:
dropbox.rest.RESTSocketError: Error connecting to "https://api-content.dropbox.com/1/files_put/auto/photobooth-2015-07-14-13-09-57.jpg?overwrite=False": SSL certificate error: [Errno 1] _ssl.c:504: error:14090086:lib(20):func(144):reason(134)
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-content.dropbox.com', port=443): Max retries exceeded with url: /1/files_put/auto/photobooth-2015-07-14-13-22-09.jpg?overwrite=False (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x774c19b0>, 'Connection to api-content.dropbox.com timed out. (connect timeout=60.0)'))
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-content.dropbox.com', port=443): Max retries exceeded with url: /1/files_put/auto/photobooth-2015-07-14-13-42-10.jpg?overwrite=False (Caused by ProtocolError('Connection aborted.', error(146, 'Connection refused')))
thanks for the prompt reply =)
Have tried following the advice, when I try to execute the upload from my browser, it loads and downloads the .php script on my computer instead. Tried checking back to my dropbox folder, and nothing gets uploaded there
url: http://10.0.2.11/upload.php on safari
update: tried following this fix but to no avail. (changing PoolManager to ProxyManager)
splitfirz:
thanks for the prompt reply =)
Have tried following the advice, when I try to execute the upload from my browser, it loads and downloads the .php script on my computer instead. Tried checking back to my dropbox folder, and nothing gets uploaded there
url: http://10.0.2.11/upload.php on safari
Setup PHP/Uhttpd:
http://forum.arduino.cc/index.php?topic=221261.msg1607985#msg1607985
sonnyyu:
Setup PHP/Uhttpd:
PHP / uhttpd - #2 by sonnyyu - Arduino Yún - Arduino Forum
Dear Sir, I'm getting this error:
Fatal error: Uncaught exception 'Exception' with message 'File '/Users/Splitfirz/Desktop/test.txt' does not exist or is not readable.' in /www/DropboxUploader.php:103 Stack trace: #0 /www/upload.php(5): DropboxUploader->upload('/Users/Splitfirz...') #1 {main} thrown in /www/DropboxUploader.php on line 103
"path/to/a/file.txt" should be some thing like " /mnt/sda1/mypic.jpg"
make sure "/mnt/sda1/mypic.jpg" exist.
sonnyyu:
"path/to/a/file.txt" should be some thing like " /mnt/sda1/mypic.jpg"
make sure "/mnt/sda1/mypic.jpg" exist.
I've corrected the location but I'm still having the same error. I have checked and verified that I indeed have a viewable picture in the SD card directory.
Fatal error: Uncaught exception 'Exception' with message 'File '/mnt/sda1/pic.jpg' does not exist or is not readable.' in /www/DropboxUploader.php:103 Stack trace: #0 /www/upload.php(5): DropboxUploader->upload('/mnt/sda1/pic.j...') #1 {main} thrown in /www/DropboxUploader.php on line 103
sonnyyu:
output of
ls -al /mnt/sda1/pic.jpg
here's the output from terminal:
root@Arduino:~# ls -al /mnt/sda1/pic.jpg
-rwxr-xr-x 1 root root 47222 Jul 14 2015 /mnt/sda1/pic.jpg