bug: chat related websocket issue #394

Closed
opened 2019-02-23 19:30:11 +00:00 by gitlab-ghost-3733 · 2 comments

I have observed this on both the develop and the latest v0.9.9 release.

On a fresh instance, if we have the chat enabled, i.e., setting chatDisabled = false, then, we will see a bunch error messages from the pleroma service as follows:

Feb 22 18:08:12 ontario mix[16694]: 18:08:12.213 [info] CONNECT Pleroma.Web.UserSocket
Feb 22 18:08:12 ontario mix[16694]:   Transport: :websocket
Feb 22 18:08:12 ontario mix[16694]:   Connect Info: %{}
Feb 22 18:08:12 ontario mix[16694]:   Parameters: %{"token" => "undefined", "vsn" => "2.0.0"}
Feb 22 18:08:12 ontario mix[16694]: 18:08:12.213 [info] Replied Pleroma.Web.UserSocket :error

At the same time, you will find an entry in the Nginx access log as such:

xxx.xxx.xxx.xxx - - [22/Feb/2019:20:48:08 -0500]  "/socket/websocket?token=undefined&vsn=2.0.0" 403 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"

Turning off chat will not see any these.

My running FE commit hash is 'ed3c318b'.

I have observed this on both the develop and the latest v0.9.9 release. On a fresh instance, if we have the chat enabled, i.e., setting *chatDisabled = false*, then, we will see a bunch error messages from the pleroma service as follows: ``` Feb 22 18:08:12 ontario mix[16694]: 18:08:12.213 [info] CONNECT Pleroma.Web.UserSocket Feb 22 18:08:12 ontario mix[16694]: Transport: :websocket Feb 22 18:08:12 ontario mix[16694]: Connect Info: %{} Feb 22 18:08:12 ontario mix[16694]: Parameters: %{"token" => "undefined", "vsn" => "2.0.0"} Feb 22 18:08:12 ontario mix[16694]: 18:08:12.213 [info] Replied Pleroma.Web.UserSocket :error ``` At the same time, you will find an entry in the Nginx access log as such: ``` xxx.xxx.xxx.xxx - - [22/Feb/2019:20:48:08 -0500] "/socket/websocket?token=undefined&vsn=2.0.0" 403 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" ``` Turning off chat will not see any these. My running FE commit hash is 'ed3c318b'.
Owner

This is resolved, right?

This is resolved, right?
Member

Hi! I have the same issue with Pleroma from develop branch (a565dbde).

Hi! I have the same issue with Pleroma from develop branch ([a565dbde](https://git.pleroma.social/pleroma/pleroma/commit/a565dbde4f2262bf30ea2df50f08454f2edda900)).
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pleroma/pleroma-fe#394
No description provided.