youtube data api intermittently throw access forbidden - youtube-data-api

I need to upload considerable amount of videos on YouTube, so I have a c# application, upload one file each 5 minutes. The problems is, it intermittently throw "access forbidden". For example it worked for around 4 hours this morning, then it became moody again :D. Any same experience recently with YouTube API?
It's the error I receive sometimes, but not always, after successful authentication, when it tries to upload:
Google.Apis.Requests.RequestError
Access forbidden. The request may not be properly authorized. [403]
Errors [
Message[Access forbidden. The request may not be properly authorized.] Location[ - ] Reason[forbidden] Domain[youtube.common]
]

Related

Why am I getting a 403 error in YouTube Data API v3?

I am trying to use the youtube-v3-api for a school project. I keep getting the message, "The request cannot be completed because you have exceeded your quota."
How can I get past this?

Google Translate works well on localhost but throws `429 Too Many Requests` error on the live server

I am using this Laravel google translate package to translate the website based on the user's locale. I configured everything well and the translation seems to work quite well on the localhost. However, when I upload the website to the server, google translate throws error 429 too many requests:
[2020-09-17 08:04:03] production.ERROR: Client error: `GET https://translate.google.com/translate_a/single?client=webapp&hl=en&dt=t&dt=bd&dt=at&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&sl=auto&tl=en&q=Canl%C4%B1+Bahisler&ie=UTF-8&oe=UTF-8&multires=1&otf=0&pc=1&trs=1&ssel=0&tsel=0&kc=1&tk=40965.430971` resulted in a `429 Too Many Requests` response:
I have tried searching for the cause of the error and found this post in google groups talking about exceeded quota but I don't think that applies to my case since I am only translating a few texts that can't get to that limit. Does someone have an idea on how to solve this?

spring social google: people API 403 Forbidden due to Legacy People API

I've got project, where I have to login through google sign in. I have created google project. Set up client/secret keys. I got to the point where I'm making post request to my web app server and sending there the accessToken:
OAuth2ConnectionFactory<Google> connectionFactory = (OAuth2ConnectionFactory<Google>) connectionFactoryLocator().getConnectionFactory(Google.class);
AccessGrant accessGrant = new AccessGrant(accessToken);
Connection<Google> connection = connectionFactory.createConnection(accessGrant);
The request is:
GET https://www.googleapis.com/plus/v1/people/me
Accept: application/json, application/*+json
Authorization: Bearer etc.
Here I got exception: 403 Forbidden. I had to manually track what the actual request is done and made rest request manually to replicate the issue with given headers.
Here is the result I'm getting:
"code": 403, "message": "Legacy People API has not been used in
project ... before or it is disabled. Enable it by visiting
https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=...
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry."
First of all the link fails to load. I didn't find any "Legacy People API". Only new People API.
I wonder if there is any solution to this problem? I have enabled People API and waited for long enough but the same error remains.
EDIT 1:
I think the project spring-social is dead. Will rewrite login logic and kick spring-social out of it..
ME TOO . this my problem. I'm waiting 6 hours
"code": 403, "message": "Legacy People API has not been used in project
Try using the Google Identity Platform OAuth API instead of the Legacy People API.

Why am I receiving an "Access Not Configured" error?

I tried my request to the youtube-data-API-v3 on Google Explorer and everything worked fine (including my API key). When I try to simply put the URL request in the browser, OR I try it in my AJAX code, I get the same error returned (below).
My API is enabled, and it says I can have 3,000,000 hits per day.
Why does it say "Access Not Configured" when I set it up on the Google developer site and it says ENABLED? Is that the problem? How do I fix that?
https://www.googleapis.com/youtube/v3/search?part=snippet&key={MY_API_KEY}&q=test&maxResults=4
Actual response:
..."message": "Access Not Configured. YouTube Data API has not been
used in project 916159313635 before or it is disabled. Enable it by
visiting
https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=916159313635
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry."

Fineuploader issues with Norton AV

We are noticing users with Norton antivirus aren't able to upload direct to Aws s3. There is a 403 error thrown on the s3 url. We have traced this to being very specifically Norton users only and happens in both ie and chrome
here are the console errors
request for 0
https://****.s3.amazonaws.com/****.mp4?uploads Failed to load resource: the server responded with a status of 403 (Forbidden)
custom.fineuploader-5.0.9.min.js:25 [Fine Uploader 5.0.9] POST request for 0 has failed - response code 403
custom.fineuploader-5.0.9.min.js:25 [Fine Uploader 5.0.9] Specific problem detected initiating multipart upload request for 0: 'The difference between the request time and the current time is too large.'.
custom.fineuploader-5.0.9.min.js:25 [Fine Uploader 5.0.9] Chunked upload request failed for 0, chunk 0
**** used in place of real information
The log messages (added after the question was posted) suggest that the issue is with a clock drift on the user's machine. It's not clear how this is related to Norton. If the clock on the user's machine drifts too far from the actual time, then AWS will reject the request. You'll need to be sure that the machine clock is reasonably accurate.
A similar question was asked at Fine Uploader getting "Policy expired" message sending to S3 for some.

Resources