Skip to content

Instantly share code, notes, and snippets.

@ggreer
Created July 13, 2012 17:40
Show Gist options
  • Save ggreer/3106202 to your computer and use it in GitHub Desktop.
Save ggreer/3106202 to your computer and use it in GitHub Desktop.
Rackspace auth 500
ggreer@carbon:~/code% curl -v -H 'Content-type: application/json' -H 'Content-type: text/plain' -d '{"auth": {"passwordCredentials": {"username": "reachnovadevops", "password": "NOPE"}}}' https://auth.api.rackspacecloud.com:443/v2.0/tokens
* About to connect() to auth.api.rackspacecloud.com port 443 (#0)
* Trying 67.192.1.11... connected
* Connected to auth.api.rackspacecloud.com (67.192.1.11) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; O=auth.api.rackspacecloud.com; OU=GT47404894; OU=See www.geotrust.com/resources/cps (c)09; OU=Domain Control Validated - QuickSSL(R); CN=auth.api.rackspacecloud.com
* start date: 2009-07-10 11:34:54 GMT
* expire date: 2014-07-11 02:57:59 GMT
* common name: auth.api.rackspacecloud.com (matched)
* issuer: C=US; O=Equifax; OU=Equifax Secure Certificate Authority
* SSL certificate verify ok.
> POST /v2.0/tokens HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: auth.api.rackspacecloud.com
> Accept: */*
> Content-type: application/json
> Content-type: text/plain
> Content-Length: 98
>
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 13 Jul 2012 17:39:31 GMT
< Server: Apache/2.2.3 (Red Hat)
< Content-Length: 2515
< Connection: close
< Content-Type: text/html;charset=utf-8
<
<html><head><title>Apache Tomcat/5.5.23 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.ws.rs.WebApplicationException: java.lang.IllegalArgumentException: Error parsing media type 'application/json, text/plain'
com.sun.jersey.server.impl.model.HttpHelper.clientError(HttpHelper.java:265)
com.sun.jersey.server.impl.model.HttpHelper.getContentType(HttpHelper.java:91)
com.sun.jersey.server.impl.model.HttpHelper.getContentType(HttpHelper.java:77)
com.sun.jersey.spi.container.ContainerRequest.getMediaType(ContainerRequest.java:637)
com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters(WebComponent.java:832)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:407)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.rackspace.cloud.api.auth.filters.RateLimitingFilter.doFilter(RateLimitingFilter.java:104)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
com.rackspace.cloud.api.auth.filters.AuthTokenSecurityFilter.doFilter(AuthTokenSecurityFilter.java:38)
com.rackspace.cloud.api.util.filter.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:118)
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.23</h3></body></html>%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment