Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing uploaded #26

Open
pointbre opened this issue Jul 12, 2018 · 11 comments
Open

Nothing uploaded #26

pointbre opened this issue Jul 12, 2018 · 11 comments

Comments

@pointbre
Copy link

pointbre commented Jul 12, 2018

Thanks for sharing your beatiful idea.

However, gphotouploader doesn't seem to upload any files.

Image for testing

$ ls /path/to/directory
11R.jpg

Tests

-upload directory name

./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader -upload /path/to/directory
2018/07/13 07:40:28 Auth file loaded, checking validity ...
2018/07/13 07:40:30 Auth file seems to be valid
2018/07/13 07:40:30 Getting a new At token ...
2018/07/13 07:40:31 At token taken
2018/07/13 07:40:31 Done (0 files uploaded, 0 files ignored, 0 errors)

-upload absolute path of one image

./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader -upload /path/to/directory/11R.jpg
2018/07/13 07:40:52 Auth file loaded, checking validity ...
2018/07/13 07:40:54 Auth file seems to be valid
2018/07/13 07:40:54 Getting a new At token ...
2018/07/13 07:40:55 At token taken
2018/07/13 07:40:55 Done (0 files uploaded, 0 files ignored, 0 errors)

--upload directory name

./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader --upload /path/to/directory
2018/07/13 07:41:15 Auth file loaded, checking validity ...
2018/07/13 07:41:17 Auth file seems to be valid
2018/07/13 07:41:17 Getting a new At token ...
2018/07/13 07:41:18 At token taken
2018/07/13 07:41:18 Done (0 files uploaded, 0 files ignored, 0 errors)

--upload absolute path of one image

./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader --upload /path/to/directory/11R.jpg
2018/07/13 07:41:23 Auth file loaded, checking validity ...
2018/07/13 07:41:25 Auth file seems to be valid
2018/07/13 07:41:25 Getting a new At token ...
2018/07/13 07:41:26 At token taken
2018/07/13 07:41:26 Done (0 files uploaded, 0 files ignored, 0 errors)

Test environment

go version
go version go1.6.2 linux/amd64

uname -r
4.13.0-43-generic

os
Ubuntu 16.04

I've tested with main.go but it had same result like above.

@ZaxonXP
Copy link

ZaxonXP commented Jul 13, 2018

I got the same results.

go version
go version go1.7.4 linux/386

uname -r
4.16.0-0.bpo.2-686-pae
Debian GNU/Linux 9.4 (stretch)

@simonedegiacomi
Copy link
Owner

simonedegiacomi commented Jul 13, 2018

Thank you for the test results.
it seems to me that there are a couple of problems:
The first due to a synchronization error, for this I used a quick solution (6e60262).
The second concerns the steps for uploading the image, which seems to have changed. I need to check how the browser does to upload photos to Google Photos and then make some changes.

@pointbre
Copy link
Author

Applied 6e60262, but still got an error:

go run main.go --upload /path/to/directory/11R.jpg
2018/07/16 07:18:16 Auth file loaded, checking validity ...
2018/07/16 07:18:17 Auth file seems to be valid
2018/07/16 07:18:17 Getting a new At token ...
2018/07/16 07:18:18 At token taken
Key path not found
2018/07/16 07:18:19 [WARNING] Image uploaded but url not found
2018/07/16 07:18:19 Upload error: Error with '/home/lucas.kim/Pictures/test.jpg': Key path not found

2018/07/16 07:18:19 Done (0 files uploaded, 0 files ignored, 1 errors)

If you need my assistance, please feel free.

@ehevnn
Copy link

ehevnn commented Jul 16, 2018

Hi, still go an error:

$ go run main.go --upload ./2018-07-02_8-29-23.jpg
2018/07/16 11:41:04 Auth file loaded, checking validity ...
2018/07/16 11:41:05 Auth file seems to be valid
2018/07/16 11:41:05 Getting a new At token ...
2018/07/16 11:41:06 At token taken
Key path not found
2018/07/16 11:41:07 [WARNING] Image uploaded but url not found
2018/07/16 11:41:07 Upload error: Error with 'C:\Users\GAGA\go\src\github.com\simonedegiacomi\gphotosuploader\2018-07-02_8-29-23.jpg': Key path not found

2018/07/16 11:41:07 Done (0 files uploaded, 0 files ignored, 1 errors)

@kgust
Copy link

kgust commented Jul 16, 2018

@ehevnn I'm seeing this too. I thought I was doing something wrong.

@simonedegiacomi
Copy link
Owner

In the next days I should be able to check the upload procedure, sorry for the inconvenience.

@simonedegiacomi
Copy link
Owner

I tried to update the code here: cff3249.
It would be perfect if you can try to see if the upload now works for you. Currently the functionality to move a photo into an album is not working, but if the basic upload works i'll update the code and then merge to the master.

@vorburger
Copy link

@simonedegiacomi thanks for this tool! I hit this same error and can also confirm that using your webapp-changes branch it works. (BTW: I initially struggled a bit to figure out what's where, so I wrote up the steps on http://blog2.vorburger.ch/2018/07/how-to-bulk-upload-old-photos-to-google.html so that I remember next time I use it... 😄 )

Upload successful but can not get url!

Not sure what you mean - which URL? For me, the photos show up on https://photos.google.com - but one, obviously, has to manually scroll down to the date which is in the EXIF of the uploaded photo.

@simonedegiacomi
Copy link
Owner

simonedegiacomi commented Jul 23, 2018

@vorburger Thank you for writing the tutorial!
The url that was not found is the url of the image, which is useful if you use the project as a library.

I have now merged the webapp-changes branch into the master 107537f.

@pointbre
Copy link
Author

@simonedegiacomi
Thanks for the update which works like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants