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

Error: can't get an upload url #31

Open
NoLooseEnds opened this issue Aug 28, 2018 · 8 comments
Open

Error: can't get an upload url #31

NoLooseEnds opened this issue Aug 28, 2018 · 8 comments

Comments

@NoLooseEnds
Copy link

I'm having the same issue as in #29, but I can't understand why I should be "blacklisted"? I have not uploaded photos (other from the Google Photos app on my iPhone) for ages.

I do use rclone to backup files, but that works fine. As far as I can tell everything in Googles API dashboard also looks fine.

I've tested this both on macOS and Linux Ubuntu.

[username:~/go/bin]$ ./gphotosuploader -upload "/path/to/dir/2002/" -maxConcurrent 4
2018/08/28 23:06:42 Auth file loaded, checking validity ...
2018/08/28 23:06:43 Auth file seems to be valid
2018/08/28 23:06:43 Getting a new At token ...
2018/08/28 23:06:43 At token taken
2018/08/28 23:06:43 Not uploading '/path/to/dir/2002/.DS_Store', it's already been uploaded or it's not a image/video!
2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_013_12a_002.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_016_09a_004.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_015_10a_003.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_012_13a_001.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_017_08a_005.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_020_05a_007.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_021_04a_008.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_018_07a_006.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_022_03a_009.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_024_01a_011.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_023_02a_010.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_025_0a_012.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_026_00a_013.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of directory with spaces/20021230_027_xa_014.jpg': can't get an upload url

2018/08/28 23:06:43 Upload error: Error with '/path/to/dir/2002/2002 Name of another directory with spaces/20021230_002_001.jpg': can't get an upload url

2018/08/28 23:06:44 Upload error: Error with '/path/to/dir/2002/2002 Name of another directory with spaces/20021230_003_002.jpg': can't get an upload url

2018/08/28 23:06:44 Upload error: Error with '/path/to/dir/2002/2002 Name of another directory with spaces/20021230_004_003.jpg': can't get an upload url

2018/08/28 23:06:44 Upload error: Error with '/path/to/dir/2002/2002 Name of another directory with spaces/20021230_006_004.jpg': can't get an upload url

2018/08/28 23:06:44 Upload error: Error with '/path/to/dir/2002/2002 Name of another directory with spaces/20021230_007_005.jpg': can't get an upload url

2018/08/28 23:06:44 Upload error: Error with '/path/to/dir/2002/2002 Name of another directory with spaces/20021230_008_006.jpg': can't get an upload url

2018/08/28 23:06:44 Done (0 files uploaded, 1 files ignored, 20 errors)
@MikeLund
Copy link

The whole blacklisting thing was a guess based on my experience. In reality it could be anything.

Additionally in my experience, there is different quotas for people uploading via the webpage (basically what this program does) vs those using apps (the "Backup and Sync" desktop app or Google Photos mobile app) -- you can sync as many files as you want via their apps, but you will get silently denied to upload anything via your browser on photos.google.com if you upload too much.

It has also happened to me that I got that error when my Google Drive's quota was full -- once I got free space back again, it worked.

So if it was working, and then suddenly stopped working, it's probably the throttling, and I suggest trying again in 24 hours (you can also try to upload directly on photos.google.com and see if it works - this would also answer if you're throttled). HTH!

@NoLooseEnds
Copy link
Author

Tested again now. Same error via gphotosuploader.
I have no problems uploading via the web interface.
I have an unlimited storage. (GSuite)

And gphotosuploader has worked for me before, but a few months back.

@tsukasachandesu
Copy link

I'm having the same issue.

@tsukasachandesu
Copy link

This error is thought to be due to upload copyrighted videos.
I uploaded videos that Youtube has removed.
Google blacklists the hash of files.

@GaPhi
Copy link

GaPhi commented Nov 16, 2019

Have the same issue since yesterday 20h51 Paris Time... (cannot upload with this tool but OK with same account with Google Chrome or Windows browser).

Has someone any idea ?

@GaPhi
Copy link

GaPhi commented Nov 16, 2019

I found that the returned error of requestUploadURL is

[
 {
  "errorMessage":{
   "reason":"REQUEST_REJECTED",
   "additionalInfo":{
    "uploader_Service.GoogleRupioAdditionalInfo":{
	 "completionInfo":{"Status":"REJECTED"},
	 "requestRejectedInfo":{"reasonDescription":"agent_rejected"}
	}
   },
   "upload_id":"..."
   }
 }
]

And then the following fails:
u.url, err = jsonparser.GetString(jsonResponse, "sessionStatus", "externalFieldTransfers", "[0]", "putInfo", "url")

@GaPhi
Copy link

GaPhi commented Nov 16, 2019

After a bit less than 24h, the tool is working again. The error message must probably be more explicit and provide the advice like "Wait about 24h before a new tentative" or sth similar.

@simonedegiacomi
Copy link
Owner

Unfortunately it's difficult to guess the cause of the problem, since the HTTP calls that the tool makes aren't documented. Anyway, I agree that the advice could be useful, thank you!

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

5 participants