项目已经启动完成 ,但是登录的时候访问对应接口一直返回 405

wuhecheng 2022-9-22 301

从 app 服务端访问 im 服务,登录时一直返回405 ,有没有大佬知道这个问题

2022-09-22 14:01:50.274 INFO 10204 --- [nio-8888-exec-1] c.w.sdk.utilities.AdminHttpUtils : Request error: 405 error msg:Please use GET method to request file!

java.lang.Exception: Http request error with code:405 at cn.wildfirechat.sdk.utilities.AdminHttpUtils.httpJsonPost(AdminHttpUtils.java:158) at cn.wildfirechat.sdk.UserAdmin.getUserByMobile(UserAdmin.java:24) at cn.wildfirechat.app.ServiceImpl.onLoginSuccess(ServiceImpl.java:469) at cn.wildfirechat.app.ServiceImpl.loginWithMobileCode(ServiceImpl.java:309) at cn.wildfirechat.app.AppController.loginWithMobileCode(AppController.java:45)

最新回复 (3)
  • wuhecheng 2022-9-22
    引用 2
    Please use GET method to request file!
  • x86 2022-9-22
    引用 3
    im-server 正常启动了吗?

    访问 http://{im-server地址}/api/version 接口有响应吗?
  • wuhecheng 2022-9-22
    引用 4
    有的 , 这个帖子可以删了,现在返回 500 了,  我先找找看  Http request error with code:500 ,谢谢了
返回