Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

GET chat/Users return json response Unexpected '<' #24

Open
4DvAnCeBoY opened this issue Feb 23, 2017 · 3 comments
Open

GET chat/Users return json response Unexpected '<' #24

4DvAnCeBoY opened this issue Feb 23, 2017 · 3 comments

Comments

@4DvAnCeBoY
Copy link

4DvAnCeBoY commented Feb 23, 2017

On requesting api, it return html or in plain json response showing unexpected '<'.

Logs:

2017.02.23 22:54:32 org.jivesoftware.util.WebManager - Unexpected exception (which is ignored) while trying to obtain user.
java.lang.NullPointerException
at org.jivesoftware.util.WebManager.getUser(WebManager.java:147)
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:160)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
2017.02.23 22:54:36 org.logicalcobwebs.proxool.openfire - Closing statement 3fa4cd86 (belonging to connection 2) automatically

@deleolajide
Copy link
Member

deleolajide commented Feb 23, 2017

Request

GET http://btg199251:7070/rest/api/restapi/v1/chat/users?search=deleo

with headers

authorization: ZGVsZW86V2VsY29tZTEyMw==
Accept: application/json
content-type: application/json

produces

{
	"user": {
		"username": "deleo",
		"name": "Dele Olajide",
		"properties": {
			"property": {
				"@key": "freeswitch.sip.embed",
				"@value": "false"
			}
		},
		"show": "offline"
	}
}

@salarmiii
Copy link

1 similar comment
@salarmiii
Copy link

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

No branches or pull requests

3 participants