Ask Your Question
0

List endpoint: Bad request

asked 2016-10-20 22:02:05 -0600

Ngoc Dinh gravatar image

I completed for setup swift all in one (http://docs.openstack.org/developer/swift/development_saio.html (http://docs.openstack.org/developer/s...)). Then I tried to add storage policies (http://docs.openstack.org/developer/swift/policies_saio.html (http://docs.openstack.org/developer/s...)), Then I performed some steps:

  1. swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing info

  2. curl -v -X PUT -H 'X-Auth-Token: [your auth token]' \ http://127.0.0.1:8080/v1/AUTH_test/myCont0 (http://127.0.0.1:8080/v1/AUTH_test/my...)

  3. curl -X PUT -v -T file0.txt -H 'X-Auth-Token: [your auth token]' \ http://127.0.0.1:8080/v1/AUTH_test/myCont0/file0.txt (http://127.0.0.1:8080/v1/AUTH_test/my...)

with my [your auth token] is AUTH_tk92fa5118fc424140a40f2d87b064ee45

Then I run the command: curl -X GET -v http://127.0.0.1:8080/endpoints/AUTH_test/myCont0/file0.txt (http://127.0.0.1:8080/endpoints/AUTH_...)

It shows an error:

Note: Unnecessary use of -X or --request, GET is already inferred. * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)

GET /endpoints/AUTH_test/myCont1/file1.txt HTTP/1.1 Host: 127.0.0.1:8080 User-Agent: curl/7.47.0 Accept: /

< HTTP/1.1 400 Bad Request < Content-Length: 137 < Content-Type: text/html; charset=UTF-8 < X-Trans-Id: txd3e1a853b9b9434e83a08-0058097cd6 < Date: Fri, 21 Oct 2016 02:26:30 GMT < * Connection #0 to host 127.0.0.1 left intact <html>

Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

</html>

I have no idea it happens Bad request error. Please give me your ideas.

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-26 21:07:22 -0600

Ngoc Dinh gravatar image

Somone help me?

Thanks,

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-20 21:48:31 -0600

Seen: 343 times

Last updated: Oct 26 '16