500内部服务器错误v3上传API

500内部服务器错误v3上传API

本文介绍了500内部服务器错误v3上传API:GoogleJsonResponseException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用YouTube的Youtube API示例将文件上传到YouTube时,我收到了以下内容:

错误消息: Video returnedVideo = videoInsert.execute( );
$ b

错误堆栈



  com.google .api.client.googleapis.json.GoogleJsonResponseException:500内部服务器错误
{
code:500,
message:null
}
at com .google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)
,位于com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed( AbstractGoogleClientRequest.java:423)
,位于com.google.api.client.googleapi s.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
,位于com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
位于com.omp。 util.YoutubeUtil.uploadVideo(YoutubeUtil.java:141)

相关问题已提出此处:

解决方案

!绝对是一个API问题。


While using Youtube API samples for Java for uploading a file to youtube, I get this:

Error at line: Video returnedVideo = videoInsert.execute();

Error Stack

com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
{
  "code" : 500,
  "message" : null
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)
    at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
    at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:423)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
    at com.omp.util.YoutubeUtil.uploadVideo(YoutubeUtil.java:141)

A related issue is already raised here: https://code.google.com/p/gdata-issues/issues/detail?id=6352

解决方案

Resolved automatically after a day or two! Definitely an API problem.

这篇关于500内部服务器错误v3上传API:GoogleJsonResponseException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:46