我遇到了 youtube java 凭据的问题,通常情况下它运行良好并且我能够上传到 youtube,但今天我收到此异常无效凭据。
YouTubeService service = new YouTubeService("id", developer_key);
try {
service.setUserCredentials(login, "pass);
} catch (AuthenticationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
堆栈跟踪:
>
com.google.gdata.client.GoogleService$InvalidCredentialsException: Invalid credentials 11:23:07,915 ERROR [STDERR]
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:660) 11:23:07,915 ERROR [STDERR]
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:560) 11:23:07,915 ERROR [STDERR]
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:397)
最佳答案
http://www.foxnews.com/tech/2013/04/17/google-mail-and-other-services-disrupted/?intcmp=HPBucket
可能有关联。我想说再试一次,因为这很可能是暂时的故障。
关于Java Youtube 凭证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16079560/