igniterealtime / REST-API-Client

Java REST API Client for the Openfire to manage Openfire instances by sending an REST/HTTP request to the server
Apache License 2.0
102 stars 62 forks source link

Returning error 500 #41

Closed antoniomorais360 closed 4 years ago

antoniomorais360 commented 4 years ago

I follow the instructions and authenticate normally, but all requests return error 500. In log, sounds normally: 2019.12.14 17:29:07 org.jivesoftware.openfire.user.DefaultUserProvider - Results: 2 2019.12.14 17:29:07 org.jivesoftware.openfire.user.DefaultUserProvider - getUsers results: admin,antonio,.

Server: Openfire 4.4.4 running in Ubuntu 18.04 LTS Client: Postman 7.13

Capture

Redor commented 4 years ago

Which version of the Openfire and Rest API plugin are you using? And can you show me your headers? (you just need the authentication there) And this repo, is about REST API Client not the REST API Plugin itself.

Redor commented 4 years ago

I removed your comment, because it had authentication information (so that everyone could abuse it) Do you see any error logs? (not the info.log)

antoniomorais360 commented 4 years ago

No recent errors registered in error.log.

Debug log:

away 1 Working: 1 out of 2 executors are busy. 2019.12.15 18:01:37 org.jivesoftware.openfire.plugin.ContentFilterPlugin - Content filter: intercepted packet: 2019.12.15 18:01:37 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 51 Queue : [MESSAGE_RECEIVED, ] 2019.12.15 18:01:37 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 51 2019.12.15 18:01:37 org.apache.mina.filter.ssl.SslFilter - Session Server[51](SSL): Processing the SSL Data 2019.12.15 18:01:37 org.apache.mina.filter.ssl.SslHandler - Session Server[51](SSL) Processing the received message 2019.12.15 18:01:37 org.apache.mina.filter.ssl.SslFilter - Session Server[51](SSL): Message received : HeapBuffer[pos=0 lim=165 cap=512: FE D6 38 DF 71 8B C5 DA C1 73 C0 54 16 A0 BF 57...] 2019.12.15 18:01:37 org.apache.mina.filter.ssl.SslFilter - Session Server[51](SSL): Processing the SSL Data 2019.12.15 18:01:37 org.apache.mina.filter.ssl.SslHandler - Session Server[51](SSL) Processing the received message 2019.12.15 18:01:37 org.apache.mina.filter.ssl.SslFilter - Session Server[51](SSL): Message received : HeapBuffer[pos=0 lim=256 cap=256: 17 03 03 01 A0 BE DA 98 10 CC 39 E2 99 BE 18 5F...] 2019.12.15 18:01:36 org.jivesoftware.openfire.user.DefaultUserProvider - getUsers results: admin,antonio,bruno,carlos,demo,focus,frank,ivanilson,jenkins,kalyandra,kleber,leandro,maycon,michel,rodrigo,romilso,testea1,thayana,thayron,thiego,. 2019.12.15 18:01:36 org.jivesoftware.openfire.user.DefaultUserProvider - Results: 20 Queue : [MESSAGE_SENT, ] 2019.12.15 18:01:33 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 51 2019.12.15 18:01:33 org.apache.mina.filter.ssl.SslFilter - Session Server[51](SSL): Writing Message : WriteRequest: HeapBuffer[pos=0 lim=36 cap=64: 3C 61 20 78 6D 6C 6E 73 3D 27 75 72 6E 3A 78 6D...] Queue : [MESSAGE_SENT, ] 2019.12.15 18:01:33 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 51 2019.12.15 18:01:33 org.apache.mina.filter.ssl.SslFilter - Session Server[51](SSL): Writing Message : WriteRequest: HeapBuffer[pos=0 lim=77 cap=4096: 3C 69 71 20 74 79 70 65 3D 22 72 65 73 75 6C 74...] 2019.12.15 18:01:33 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 51
Redor commented 4 years ago

I will close that issue (because it is an REST API Server issue) FYI: We published a new release https://github.com/igniterealtime/openfire-restAPI-plugin/releases which might fixed your issue