Openfire-Chat icon indicating copy to clipboard operation
Openfire-Chat copied to clipboard

Unable to see the demo of how sse connection is created

Open lokesh-osian opened this issue 6 years ago • 3 comments

As per the details given in documentation, I tried to see the example of SSE in openfire but when I visit http://{{server_name}}:7070/apps/sse/index.html . I am getting a 503 error. And unable to see how the SSE Works. I have attached a screenshot of the issue. Can you Please help me to fix the issue or can you at least provide some information on how can I fix this.

Screenshot from 2019-08-02 18-27-43

lokesh-osian avatar Aug 02 '19 13:08 lokesh-osian

@lokesh-osian wow you can open https://localhost:7070/apps/sse/index.html ? I cant open it. I've got ERR_SSL_PROTOCOL_ERROR like this: sse error

how to open apps/sse/index.html ?

meidikawardana avatar Oct 04 '19 04:10 meidikawardana

You need to provide basic authenticate headers and already login with the Openfire Chat REST API. Otherwise, there is no data to send you over the SSE connection.

See https://discourse.igniterealtime.org/t/openfire-chat-api/68792/62

deleolajide avatar Oct 04 '19 09:10 deleolajide

I feel like I'm missing something here...

I do a /chat/login just fine to the server, then I try and issue a GET to http://xmpp.mysite.com:7070/rest/api/event/source

and all I get are 404s. I pass basic authorization headers with my username and password and still get nothing.

alexkozler avatar Jan 28 '20 17:01 alexkozler