nmrshll / google-photos-api-client-go Goto Github PK
View Code? Open in Web Editor NEWGoogle photos api client in go
Google photos api client in go
I just got this error while uploading.
I restarted and it kept on going, so it seems like a transient error. It may not be in your client, but it looks like transient url errors aren't being handled:
2019/05/29 07:42:06 0504191058.jpg uploaded successfully as AO7IUSvd2iUBapey3DdFe6alOyCTvl61kNiACBVTdCWFRUtDtxPPKqLjfSZmGJnYgZd0tDtElTypVkD-zIO13cfJgE5EBWME3g
2019/05/29 07:42:06 Marked as uploaded: /data/sync/nick_V20/Camera/Camera/0504191058.jpg
2019/05/29 07:42:06 Uploading 0504191058a.jpg
panic: interface conversion: error is *url.Error, not *googleapi.Error
goroutine 16 [running]:
github.com/nmrshll/google-photos-api-client-go/lib-gphotos.(*Client).UploadFile(0xc0002709e8, 0xc0002d4180, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/poleguy/go/src/github.com/nmrshll/google-photos-api-client-go/lib-gphotos/client.go:123 +0xb4f
github.com/nmrshll/gphotos-uploader-cli/upload.(*FileUpload).upload(0xc0002709b0, 0xc000243fa8, 0x1)
/home/poleguy/go/src/github.com/nmrshll/gphotos-uploader-cli/upload/fileUpload.go:52 +0x7f
github.com/nmrshll/gphotos-uploader-cli/upload.StartFileUploadWorker.func1(0xc0001c0040)
/home/poleguy/go/src/github.com/nmrshll/gphotos-uploader-cli/upload/fileUpload.go:32 +0x75
created by github.com/nmrshll/gphotos-uploader-cli/upload.StartFileUploadWorker
/home/poleguy/go/src/github.com/nmrshll/gphotos-uploader-cli/upload/fileUpload.go:30 +0x87
Some days ago I was uploading images and it was working fine for hours. Eventually, it stopped due to max daily limits but now weeks later when i re-run the upload i get the error shown:
...
already uploaded: /mnt/dlinknas1/data/pictures/2010/20100830/img_2502.jpg: skipping file...
already uploaded: /mnt/dlinknas1/data/pictures/2010/20100830/img_2503.jpg: skipping file...
already uploaded: /mnt/dlinknas1/data/pictures/2010/20100830/img_2504.jpg: skipping file...
2019/06/20 10:06:02 Uploading img_2505.jpg
2019/06/20 10:06:06 failed uploading image: failed uploading image: status message should be OK, found: Success
--- at github.com/nmrshll/google-photos-api-client-go/lib-gphotos/client.go:147 (Client.UploadFile) ---
softcoder@softcoder-desktop:~/gphotos-uploader$
This library has supported resumable uploads ?
https://developers.google.com/photos/library/guides/resumable-uploads
HI, your project is awesome, I have a question about "google.golang.org/api/photoslibrary/v1"
For official google photo API clients, it seems be removed (Ref: https://github.com/googleapis/google-api-go-client).
Do you have any idea about this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.