Bostwickenator / STGUploader

Upload photos from PMCA cameras to Google Photos
MIT License
30 stars 10 forks source link

[ERROR] java.io.FileNotFoundException: https://picasaweb.google.com/data/feed/api/user/default/albumid/default #5

Closed Bostwickenator closed 6 years ago

Bostwickenator commented 7 years ago

Hi,

First of all, sorry to post this issue here , in the wrong project because it is about STG Uploader, but I couldn't find a better place to contact you. Second: I would love to help fix this bug and make this app even better. I have tons of experience with Android app development.

So when do I get the error: Since it happened, it happens every time I try to upload again. So now uploading never works (anymore). It worked the first few times, but at a certain point it stopped working. This is what I see/do:

start app see it connecting to wifi see the user interface with the two buttons Start Upload and Settings. I also see that 100 photos are ready to upload. When I click Start Upload it tries to start upload, and I see the 'small animation', but it does not upload and after a while it just stops. The logs says: [INFO] setting wifi enabled state to true [INFO] Resume org.bostwickenator.googlephotos.LoginActivity [INFO] Pause org.bostwickenator.googlephotos.LoginActivity [INFO] Resume org.bostwickenator.googlephotos.MainActivity [INFO] Response Code : 403 [ERROR] java.io.FileNotFoundException: https://picasaweb.google.com/data/feed/api/user/default/albumid/default [INFO] Response Code : 403 [ERROR] java.io.FileNotFoundException: https://picasaweb.google.com/data/feed/api/user/default/albumid/default [INFO] Response Code : 403

What doesn't work:

Clearing the database Re authorizing Google What does work (strangely enough):

Installing the app again (without removing it first)

nevixa commented 7 years ago

Hi,

Thanks for sharing the code. I'm able to build the apk and install the app on my camera, but it gives me an error with login into Google. I tried removing the C.DAT file, but I get a 401 error on the login screen and saying it is missing oauth. I'm not sure if I'm missing some files/libraries or if I'm just doing something wrong. Maybe you can help me out?

Thanks

Bostwickenator commented 7 years ago

There are no keys shared in the repo. Check the AuthenticationManager class https://github.com/Bostwickenator/STGUploader/blob/6328fccea73fb2e3881cf58fb6cdb499aa12f1e4/app/src/main/java/org/bostwickenator/googlephotos/AuthenticationManager.java#L29-L30. If you want to build a functioning version you will need to register your own application with Google. I will add this to the readme.

brianc118 commented 7 years ago

@Bostwickenator When you register the application with google, which apis did you choose and what application type did you choose? Also I notice that Android apps to not have a client secret. Did you choose Web Application or Other?

screen shot 2017-05-18 at 11 14 56 pm
Bostwickenator commented 7 years ago

Yes choose web. The Android type relies on Google Play Services which we don't have on the camera.

On Thu, 18 May 2017 at 08:15 Brian Chen notifications@github.com wrote:

@Bostwickenator https://github.com/bostwickenator When you register the application with google, which apis did you choose and what application type did you choose? Also I notice that Android apps to not have a client secret. Did you choose Web Application or Other? [image: screen shot 2017-05-18 at 11 14 56 pm] https://cloud.githubusercontent.com/assets/4782836/26203767/d9907a18-3c1f-11e7-939e-43ecdeefdff5.png

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Bostwickenator/STGUploader/issues/5#issuecomment-302400191, or mute the thread https://github.com/notifications/unsubscribe-auth/ABjjjDyLSOjjVF3vj_pTyRYUxAgr8ZiMks5r7ESFgaJpZM4NUaDV .

zoltanf commented 6 years ago

Hello. Thanks for this project. Any update on this issue?

Bostwickenator commented 6 years ago

Doesn't happen for me you might be exceeding some kind of API limit. How many photos are you uploading?

zoltanf commented 6 years ago

I can't seem to repeat it now. It was around 200 fotos last time it happened.