igniterealtime / Openfire-Chat

Chat API (REST) for Openfire
https://discourse.igniterealtime.org/t/openfire-chat-api/68792
15 stars 8 forks source link

Unable to see the demo of how sse connection is created #14

Open lokesh-osian opened 5 years ago

lokesh-osian commented 5 years ago

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

meidikawardana commented 4 years ago

@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 ?

deleolajide commented 4 years ago

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

alexkozler commented 4 years ago

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.