I try to upload a video of 558 MB with api v3 and I get this error:
{ "error": { "code": 413, "message": "Media is too large. Limit:
104857600", "errors": [ { "message": "Media is too large. Limit:
104857600", "domain": "global", "reason": "failedPrecondition" } ],
"status": "FAILED_PRECONDITION" } }
What should I do ?
Related
After annotating my data set and training a custom processor on Google Document AI, I get the following error message after 40 mins:
{
"name": "projects/500809854407/locations/eu/operations/10980743890623751388",
"done": true,
"result": "error",
"response": {},
"metadata": {
"#type": "type.googleapis.com/google.cloud.documentai.uiv1beta3.TrainProcessorVersionMetadata",
"commonMetadata": {
"state": "FAILED",
"createTime": "2023-01-13T15:11:36.505757Z",
"updateTime": "2023-01-13T15:50:10.343765Z",
"resource": "projects/500809854407/locations/eu/processors/b94da5023b6cb35d/processorVersions/98637063da2b64d4"
},
"trainingDatasetValidation": {},
"testDatasetValidation": {}
},
"error": {
"code": 13,
"message": "Internal error encountered.",
"details": []
}
}
Any idea what could be the problem?
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"errors": [
{
"message": "Login Required.",
"domain": "global",
"reason": "required",
"location": "Authorization",
"locationType": "header"
}
],
"status": "UNAUTHENTICATED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CREDENTIALS_MISSING",
"domain": "googleapis.com",
"metadatas": {
"method": "compute.v1.NetworksService.List",
"service": "compute.googleapis.com"
}
}
]
}
}
{
"publishable_api_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"amount": 100,
"currency": "SAR",
"description": "Description",
"source": {
"type":"stcpay",
"mobile": "0598296216"
}
}
Error================
{
"type": "invalid_request_error",
"message": "M077: Account does not have Stcpay MID specified.",
"errors": null
}
Question: Why did I get this error? The error message is not informative/helpful. Please assist to solve.
I tried to simulate this on Google APIs Explorer:
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.update
Part: status
{
"id": "3zZ1lCz-rp4",
"status": {
"privacyStatus": "private",
"publishAt": "2019-04-12T12:12:12.12Z"
}
}
But not working. Getting response:
{
"error": {
"errors": [
{
"domain": "youtube.video",
"reason": "invalidVideoMetadata",
"message": "The request metadata is invalid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The request metadata is invalid."
}
}
Playing around with yt api explorer (have oAuthd the explorer with full privileges) but getting this error when trying to insert a playlist item
403 Forbidden
- Show headers -
{
"error": {
"errors": [
{
"domain": "youtube.common",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Forbidden"
}
}
here is the request
POST https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer ya29.AHES6ZSnBwWDrjGUDHRJQx1QLM0pw3t5xqly3t95DCISfUo
X-JavaScript-User-Agent: Google APIs Explorer
{
"id": "PLmzmv3DHYPlfztdaeGokYjX6l6f-0JsIH",
"snippet": {
"playlistId": "PLF1D540E51D694619",
"resourceId": {
"videoId": "TqmU2q5erdM",
"kind": "youtube#video"
}
}
}
You shouldn't put id. You should put playlistId only like this
{
"snippet": {
"playlistId": "PLpZ720-WRTJz-LFGDm1yzAoClUE6795ft",
"resourceId": {
"videoId": "WV4CJ7A7Yo8",
"kind": "youtube#video"
}
}
}