Git Product home page Git Product logo

Comments (16)

amatmv avatar amatmv commented on May 14, 2024 1

Same problem here... just suddenly happening.

from gphotos-uploader-cli.

brett-w-thompson avatar brett-w-thompson commented on May 14, 2024

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.

softcoder avatar softcoder commented on May 14, 2024

How do you recompile this project to get a new binary locally?

from gphotos-uploader-cli.

pacoorozco avatar pacoorozco commented on May 14, 2024

from gphotos-uploader-cli.

softcoder avatar softcoder commented on May 14, 2024

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.

pacoorozco avatar pacoorozco commented on May 14, 2024

Hi

I've asked @nmrshll to have write permission to fix the issue. we can hopefully solve it soon

from gphotos-uploader-cli.

rfgamaral avatar rfgamaral commented on May 14, 2024

@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.

pacoorozco avatar pacoorozco commented on May 14, 2024

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.

pacoorozco avatar pacoorozco commented on May 14, 2024

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.

rfgamaral avatar rfgamaral commented on May 14, 2024

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.

Brimstedt avatar Brimstedt commented on May 14, 2024

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.

qwandor avatar qwandor commented on May 14, 2024

I'm seeing this issue in the latest release v0.3.1 still.

from gphotos-uploader-cli.

pacoorozco avatar pacoorozco commented on May 14, 2024

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.

ivanorJunior avatar ivanorJunior commented on May 14, 2024

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.

pacoorozco avatar pacoorozco commented on May 14, 2024

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.

ivanorJunior avatar ivanorJunior commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.