javaswift / joss

Java library for OpenStack Storage, aka Swift
http://javaswift.org
117 stars 108 forks source link

swift auth: HTTP status 405, Error UNKNOWN #180

Closed DarkFrank closed 3 years ago

DarkFrank commented 4 years ago

AccountConfig config = new AccountConfig() .setUsername( username) .setPassword(password) .setAuthUrl(url) .setAuthenticationMethod(AuthenticationMethod.KEYSTONE_V3); Account account = new AccountFactory(config).createAccount(); When I authenticate using the above mWhen I authenticate using the above method, the programe report the following exception.ethod, the programe report the following exception.

2020-09-14 16:29:26 [main] ERROR [org.javaswift.joss.command.impl.core.AbstractCommand] - JOSS / HTTP POST call http://keystone.openstack.svc.cn-north-3.myinspurcloud.com/v3, HTTP status 405, Error UNKNOWN 2020-09-14 16:29:26 [main] ERROR [org.javaswift.joss.command.impl.core.AbstractCommand] - * Accept=application/json Command exception, HTTP Status code: 405 => UNKNOWN at org.javaswift.joss.command.impl.core.httpstatus.HttpStatusChecker.verifyCode(HttpStatusChecker.java:45) at org.javaswift.joss.command.impl.core.AbstractCommand.call(AbstractCommand.java:51) at org.javaswift.joss.client.impl.ClientImpl.createAccount(ClientImpl.java:111) at org.javaswift.joss.client.impl.ClientImpl.createAccount(ClientImpl.java:26) at org.javaswift.joss.client.core.AbstractClient.authenticate(AbstractClient.java:35) at org.javaswift.joss.client.factory.AccountFactory.createAccount(AccountFactory.java:30)