mgozdiskowski / youtube-direct

Automatically exported from code.google.com/p/youtube-direct
0 stars 0 forks source link

Error: OK #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Click "Allow access" after redirected to YouTube

What is the expected output? What do you see instead?
Redirection back to my site. Instead a get a 
Error: OK
with title: 500 OK

What version of the product are you using? On what operating system?
http://youtube-direct.googlecode.com/files/ytd-20091113.tar.gz
On GAE

Please provide any additional information below.

Original issue reported on code.google.com by i...@beyourstar.gr on 20 Dec 2009 at 12:38

GoogleCodeExporter commented 8 years ago
You've set the wrong API Key.

Original comment by triox...@gmail.com on 19 Feb 2010 at 12:09

GoogleCodeExporter commented 8 years ago
It very well may be because of the wrong API key. In general, the error 
messages in the 
UI will be improved in the 2.0 release.

You can always find the root cause of an error message by looking in the App 
Engine 
logs from the App Engine dashboard (http://appengine.google.com). You may need 
to 
set the log threshold in that web page to "Debug" in order to see all error 
messages.

Original comment by api.je...@gmail.com on 19 Feb 2010 at 9:52

GoogleCodeExporter commented 8 years ago
I've triple checked my API key, and I still seem to be getting this problem.  
I've checked the API key in my code and in the configuration for the youtube 
direct admin page.

Original comment by sp...@voyc.it on 10 Oct 2011 at 1:05

GoogleCodeExporter commented 8 years ago
Do you see anything relevant in the App Engine logs? As mentioned above:

"""
You can always find the root cause of an error message by looking in the App 
Engine logs from the App Engine dashboard (http://appengine.google.com). You 
may need to set the log threshold in that web page to "Debug" in order to see 
all error messages.
"""

Original comment by je...@google.com on 10 Oct 2011 at 7:50

GoogleCodeExporter commented 8 years ago
I do.  I get this error:

com.google.ytd.dao.AdminConfigDaoImpl getPrivateKey: 
java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: 
IOException : algid parse error, not a sequence
    at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:217)
    at java.security.KeyFactory.generatePrivate(KeyFactory.java:359)
    at com.google.ytd.dao.AdminConfigDaoImpl.getPrivateKey(AdminConfigDaoImpl.java:88)
    at com.google.ytd.youtube.PersistAuthSubToken.doGet(PersistAuthSubToken.java:69)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:141)
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:249)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
    at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:393)
    at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449)
    at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455)
    at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325)
    at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
    at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:160)
    at java.lang.Thread.run(Thread.java:679)

Original comment by sp...@voyc.it on 10 Oct 2011 at 8:23

GoogleCodeExporter commented 8 years ago
Here are the images that show the tail end of my api key... I assume posting 
the whole key is not a good idea.   The key is the same in my appengine-web.xml 
as it is in my youtube direct configuration.  Is there a third place I must set 
it to get rid of these errors?

http://imgur.com/a/9TOkF

Original comment by sp...@voyc.it on 11 Oct 2011 at 4:46

Attachments:

GoogleCodeExporter commented 8 years ago
Hello—That exception in the logs has to do with the "Private Key Certificate" 
value in your configuration page being invalid. The developer key you're using 
is probably fine. Double check your Private Key Certificate, though. There are 
instructions for generating it linked to from the admin page.

Original comment by api.je...@gmail.com on 19 Oct 2011 at 7:57

GoogleCodeExporter commented 8 years ago
Thanks... that fixed it!

Original comment by e...@curs.es on 19 Oct 2011 at 8:07