- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试使用 javascript MediaUploader.js 将 youtube 视频上传到我自己的帐户,出于某种原因,我在 onError 函数中遇到此错误:
"errors": [
{
"domain": "youtube.quota",
"reason": "quotaExceeded",
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e."
}
],
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e."
我今天只测试了几次,就出现了这个奇怪的错误。
var signinCallback = function (tokens, file){
console.log("signinCallback tokens: ",tokens);
if(tokens.accessToken) { //tokens.access_token
console.log("signinCallback tokens.accessToken: ",tokens.accessToken);
var metadata = {
id: "101",
snippet: {
"title": "Test video upload",
"description":"Description of uploaded video",
"categoryId": "22",//22
"tags": ["test tag1", "test tag2"],
},
status: {
"privacyStatus": "private",
"embeddable": true,
"license": "youtube"
}
};
console.log("signinCallback Object.keys(metadata).join(','): ",Object.keys(metadata).join(','));
var options = {
url: 'https://www.googleapis.com/upload/youtube/v3/videos?part=snippet%2Cstatus&key=<my api key>',
file: file,
token: tokens.accessToken,
metadata: metadata,
contentType: 'application/octet-stream',//"video/*",
params: {
part: Object.keys(metadata).join(',')
},
onError: function(data) {
var message = data;
// Assuming the error is raised by the YouTube API, data will be
// a JSON string with error.message set. That may not be the
// only time onError will be raised, though.
try {
console.log("signinCallback onError data: ",data);
if(data!="Not Found"){
var errorResponse = JSON.parse(data);
message = errorResponse.error.message;
console.log("signinCallback onError message: ",message);
console.log("signinCallback onError errorResponse: ",errorResponse);
}else{
}
} finally {
console.log("signinCallback error.... ");
}
}.bind(this),
onProgress: function(data) {
var currentTime = Date.now();
var bytesUploaded = data.loaded;
var totalBytes = data.total;
// The times are in millis, so we need to divide by 1000 to get seconds.
var bytesPerSecond = bytesUploaded / ((currentTime - this.uploadStartTime) / 1000);
var estimatedSecondsRemaining = (totalBytes - bytesUploaded) / bytesPerSecond;
var percentageComplete = (bytesUploaded * 100) / totalBytes;
console.log("signinCallback onProgress bytesUploaded, totalBytes: ",bytesUploaded, totalBytes);
console.log("signinCallback onProgress percentageComplete: ",percentageComplete);
}.bind(this),
onComplete: function(data) {
console.log("signinCallback onComplete data: ",data);
var uploadResponse = JSON.parse(data);
this.videoId = uploadResponse.id;
//this.pollForVideoStatus();
}.bind(this)
}
MediaUpload.videoUploader(options);
}
};
我在开发者控制台查看了我的配额,我的配额限制很大,我不可能超过我的配额,例如,我今天总共有 89 个查询,我的配额限制是 10,000 个查询/天。
预期:成功将我的视频上传到我的 youtube 帐户。实际结果:quotaExceeded
最佳答案
我对 Google 感到失望,因为我遇到了这种情况。
I had the same issue, no usage at all but "quota exceeded" response. My solution was to create a new project. I guess it's because something changed internally over time and wasn't applied correctly to (at least my) already existing project...
出于多种原因,我已经停止使用 AWS,并认为 Google Cloud 会是一种令人耳目一新的体验,但这表明 Google 对待现有项目的态度与它扼杀的新产品一样糟糕。对谷歌发起攻击。
https://github.com/googleapis/google-api-nodejs-client/issues/2263#issuecomment-741892605
关于javascript - 无法完成请求,因为您已超出配额,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58469228/
在文档中我们可以找到 The limits are based on a moving window that tracks the number of requests you send per h
我试图了解使用 Windows Azure 托管 Web 服务的正确方法。在阅读了一些可用的文档后,我已经达到以下几行: Windows Azure takes the following actio
我正在运行 GitLab Community Edition并希望为 GitLab 项目(存储库)添加配额,以防止用户创建大型项目。 配额应以最大项目大小为单位,例如每个项目 420 MB。这可能吗?
我已经通过 jersey 框架构建了 Web 服务 API。现在我想限制每个客户的配额。例如: - 一个客户一天只能发出少于10000个请求。 - 一个客户端每秒只能发出少于 10 个请求。等等等等。
我们使用免费 API 制作简单的 501C3 map 。通常我们的地理编码使用率很低,但我们所做的更改 [oops] 触发了所有 >2500 条记录的重新请求。 我们可以等待 24 小时“超时”。 我
我们知道任何人或任何公司都向我们提供了许多 API 来开发我们的应用程序。其中一些需要订阅并为您提供访问 token 或 key 等。您可以使用这些 key 访问和使用这些 API,这些 key 使他
在 google chrome 中 indexedDB 的配额限制是什么?不知何故,似乎很少有人提到这一点。我可以像在 Firefox 中一样使用无限配额并获得用户许可吗? 最佳答案 Unlimite
是否有关于如何处理 sql azure 配额限制的最佳实践?也许某种自动增加? 最佳答案 您可以使用以下查询确定该层的大小限制: SELECT Edition = DATABASEPROPERTYEX
关闭。这个问题需要details or clarity .它目前不接受答案。 想改进这个问题?通过 editing this post 添加详细信息并澄清问题. 1年前关闭。 Improve this
我尝试将 nodeJS 中的视频插入 Youtube,但出现此错误: { errors: [ { domain: 'youtube.quota', reason: 'quotaExceeded', m
我们将 API 帐户从免费更新为付费,但它不允许我们增加配额。我的理解是如果我去的话应该有一个选择APIs & auth --> APIs --> 选择 API --> Quota,但没有。 有人可以
Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where
对于这个特定问题,我发现了几个相关问题,但 Google 团队没有给出明确的答案: 写入 BigQuery 的 Cloud DataFlow 作业是否限制为每表每秒 10 万行的 BigQuery 配
据我了解(给定 this previous question 和 the Google Maps API docs ),攻击者似乎可以用完另一个站点的配额。 例如,假设我运行一个网络应用“Find T
我正在使用 pubnub Java SDK 3.7.2。我只使用免费计划。当我不停地发布一堆消息时,经常会出现以下错误。但我每 200-300 毫秒发布一条消息,错误不会发生。发布间隔有限制吗? [E
我尝试在 GCP 中购买额外的 promise 使用折扣,但出现此错误。 Quota 'COMMITTED_CPUS' exceeded. Limit: 75.0 in region asia-sou
我有一个应用程序,它使用 youtube-data-API 来分析视频描述中的一些数据。我想从我的应用程序中及时检查我的配额使用情况。 最佳答案 您可以从 Google 控制台检查您的配额,方法是转到
我正在本地开发一个应用程序,我只是集成了 Youtube data api v3 来查询视频。 昨晚我收到 403 错误,说我的每日配额已超出。如果我查看开发者控制台中配额下的图表,它说昨天有 10,
是否可以为 azure 应用服务可以使用的 CPU 和 RAM 使用量设置配额(或限制)? 假设我有一个应用服务计划 plan-one 和在该计划上运行的两个应用服务:A 和 B。我可以以某种方式说
我正在寻找一种使用client-go来获取 namespace 资源配额的方法,类似于kubectl describe ns my-namespace-name。 我已经尝试过ns, err := k
我是一名优秀的程序员,十分优秀!