-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pleroma and GoToSocial support #37
Comments
Anybody interested in helping out, the beginning of some code is in the websockets branch: #43. |
I currently able to sign in to a Pleroma instance, but I keep getting disconnected:
Looks like the request I'm sending is something like this: HTTP/1.1
Host: fedi.alexschroeder.ch
Connection: keep-alive, Upgrade
Upgrade: websocket
Origin: https://fedi.alexschroeder.ch
Pragma: no-cache
Cache-Control: no-cache
Authorization: Bearer XXXXXXXXXXXXXXXXXXXX
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: 57tuV1d0Q1g6fZmC3nnwTQ==
User-Agent: BitlBee 3.6 And the reply I'm getting from my Pleroma instance is something like this: HTTP/1.1 403 Forbidden
content-length: 0
date: Sun, 08 Dec 2019 19:43:48 GMT
server: Cowboy |
That issue was solved by also appending the access token as a parameter to the URL. This goes against what I believe is correct. It should be passed along as an HTTP header. Oh well. |
Next problem: I'm getting empty websocket messages that cannot be parsed, I'm not seeing any statuses in my timeline and I'm being disconnected after 2min.
|
i'll see about compiling the branch and trying it with my pleroma account when i have time later this evening
…On Sunday, December 8, 2019, Alex Schroeder wrote:
I'm still getting this error, even if I'm using the branch with websocket support #43:
> Login error: OAuth failure (unsupported_grant_type)
I don't know what to do about that. I *think* support for OAuth scopes got added with [MR #1643](https://git.pleroma.social/pleroma/pleroma/merge_requests/1643) closing issue [#1234](https://git.pleroma.social/pleroma/pleroma/issues/1234). I guess my Pleroma instance is too old?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#37 (comment)
|
This also affects support for GoToSocial, which implements the websocket API but not the SSE one. |
bitlbee-mastodon currently does not support pleroma, because pleroma requires the use of websockets to subscribe to its event stream, and bitlbee-mastodon uses the mastodon-style streaming API instead. we may want to look at bitlbee-discord, which already uses websocket - it might be possible to translate its implementation to the pleroma API.
The text was updated successfully, but these errors were encountered: