Comments (16)
Same problem here... just suddenly happening.
from gphotos-uploader-cli.
I modified line 123 in client.go
to be:
if result.Status.Message != "OK" && result.Status.Message != "Success" {
which fixed it. I think to fix it properly someone would need to submit a PR over to lib-gphotos
(https://github.com/nmrshll/google-photos-api-client-go/tree/master/lib-gphotos I think)
from gphotos-uploader-cli.
How do you recompile this project to get a new binary locally?
from gphotos-uploader-cli.
from gphotos-uploader-cli.
After applying the fix it works for a few more images then i get an error just like this: google/data-transfer-project#651
Shows up in my console as (hid my project info with XX):
2019/06/25 16:27:29 Uploading img_2615.jpg
2019/06/25 16:27:32 failed uploading image: failed uploading image: failed adding media img_2613.jpg
--- at /home/softcoder/go/pkg/mod/github.com/nmrshll/[email protected]/lib-gphotos/client.go:115 (Client.UploadFile) ---
Caused by: googleapi: Error 429: Quota exceeded for quota metric 'photoslibrary.googleapis.com/write_requests' and limit 'WritesPerMinutePerUser' of service 'photoslibrary.googleapis.com' for consumer 'project_number:XX'., rateLimitExceeded
from gphotos-uploader-cli.
Hi
I've asked @nmrshll to have write permission to fix the issue. we can hopefully solve it soon
from gphotos-uploader-cli.
@pacoorozco I see that you release v0.3.0 a few days ago. Is that build supposed to be working without merging this first?
from gphotos-uploader-cli.
Not sure... I've tested it and it works on my side, but I think it could not work on other environments... @nmrshll has not answered me.. yet
from gphotos-uploader-cli.
Hi @rfgamaral
I've forked the parent repo: https://github.com/gphotosuploader/google-photos-api-client-go
And fixed the issue, so this should solve the problem using gphotos-uploader-cli
.
Can you confirm it?
from gphotos-uploader-cli.
I can't do that confirmation for you because I'm not currently using gphotos-uploader-cli
(but I'm trying to maintain my Docker image) and this was an issue some people complained on my repository. I just noticed you've been releasing new versions without that extra condition and was wondering why it was working without it.
I hope this is a temporary fix and I hope @nmrshll can you give you collaborator access to the original repo so we don't start forking everything just to fix tiny bugs, it will be much harder to keep track and maintain these projects like that :/
from gphotos-uploader-cli.
a temporary fix if you dont mind compiling gphotos-uploader-cli yourself is to change the logging from Fatal to Print.
upload/fileUpload.go, line 34
(and you dont need to fork the repo, just clone it locally)
from gphotos-uploader-cli.
I'm seeing this issue in the latest release v0.3.1 still.
from gphotos-uploader-cli.
Hi @qwandor
There are different issues mentioned in this thread 😓 Which one is the one you are seeing?
Can you paste the log, please?
Paco
from gphotos-uploader-cli.
gphotos-uploader-cli$ ./gphotos-uploader-cli 2019/07/11 08:03:21 album not created: /media/ivanor/Seagate Expansion Drive/sim/ivanor/Imagens/Chapada_solo. set jobs.makeAlbums.enabled = true to create albums 2019/07/11 08:03:21 Uploading image01317.jpg 2019/07/11 08:03:21 Uploading image01318.jpg 2019/07/11 08:03:21 Uploading image01319.jpg 2019/07/11 08:03:21 Uploading image01320.jpg 2019/07/11 08:03:21 Uploading image01321.jpg 2019/07/11 08:11:03 failed uploading image: failed uploading image: status message should be OK, found: Success --- at /home/ivanor/go/src/github.com/nmrshll/google-photos-api-client-go/lib-gphotos/client.go:147 (Client.UploadFile) ---
from gphotos-uploader-cli.
Sorry, I didn't update the dependencies version. It should be fixed by #85, so let's try v0.3.2
from gphotos-uploader-cli.
I modified line 123 in
client.go
to be:if result.Status.Message != "OK" && result.Status.Message != "Success" {
which fixed it. I think to fix it properly someone would need to submit a PR over to
lib-gphotos
(https://github.com/nmrshll/google-photos-api-client-go/tree/master/lib-gphotos I think)
Ok. That worked for me. Thanks.
from gphotos-uploader-cli.
Related Issues (20)
- Upload Errors Occur Intermittently HOT 6
- sort conents of folder HOT 2
- Several SecretBackendTypes not working for MacOS HOT 2
- Unable to run latest version HOT 5
- Add option to specify web port for authentication HOT 1
- Photos "uploaded" but not showing up in google photos HOT 1
- Add a cli switch to specify the name of the album HOT 1
- Run headless by making it load from created credential json file HOT 8
- Uploads are showing date of upload as filename. HOT 5
- allow custom RedirectURLHostname HOT 2
- didn't find all files, please add ability to load file paths from txt. HOT 6
- Show Google Photos API error description to make easier the troubleshooting HOT 9
- Abort upload if v3 directories are found
- 4.2.0 doesn't show version HOT 2
- "option CreateAlbums is invalid, '⏎" on fresh installation HOT 2
- Error message for expired token could be clearer
- Missing steps in OAuth setup / authentication
- Pre resize/encode video to lower resolution and quality before upload HOT 2
- After upgrading from 3.5.2 to 4.5.0 it does not detect already uploaded images HOT 2
- unlimited storage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gphotos-uploader-cli.