Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 500 when using curl [JIRA: RCS-383] #1332

Open
jeromer opened this issue Feb 9, 2017 · 2 comments
Open

HTTP 500 when using curl [JIRA: RCS-383] #1332

jeromer opened this issue Feb 9, 2017 · 2 comments

Comments

@jeromer
Copy link

jeromer commented Feb 9, 2017

When the Date header is missing:

curl -v http://localhost:8000/riak-cs/user -H 'Authorization: AWS a:b'
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /riak-cs/user HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:8000
> Accept: */*
> Authorization: AWS a:b
> 
< HTTP/1.1 500 Internal Server Error
* Server Riak CS is not blacklisted
< Server: Riak CS
< Date: Thu, 09 Feb 2017 14:42:31 GMT
< Content-Type: text/html
< Content-Length: 170
< 
[...]

curl -v http://localhost:8000/riak-cs/user -H 'Date: Thu, 09 Feb 2017 14:22:33 +0000' -H 'Authorization: AWS a:b'
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /riak-cs/user HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:8000
> Accept: */*
> Date: Thu, 09 Feb 2017 14:22:33 +0000
> Authorization: a:b
> 
< HTTP/1.1 403 Forbidden
* Server Riak CS is not blacklisted
< Server: Riak CS
< Date: Thu, 09 Feb 2017 14:43:25 GMT
< Content-Type: application/xml
< Content-Length: 167
< 
[...]
@Basho-JIRA Basho-JIRA changed the title HTTP 500 when using curl HTTP 500 when using curl [JIRA: RCS-383] Feb 9, 2017
@jeromer
Copy link
Author

jeromer commented Feb 9, 2017

Maybe related to #1098 ?

@jeromer
Copy link
Author

jeromer commented Feb 9, 2017

x@riaktest01-xen01:/tmp$ sudo riak version
2.2.0
x@riaktest01-xen01:/tmp$ sudo riak-cs version                                                      
2.1.1
x@riaktest01-xen01:/tmp$ sudo dpkg -l | grep riak
ii  riak                            2.2.0-1                    amd64        Riak is a distributed data store
ii  riak-cs                         2.1.1-1                    amd64        Riak CS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants