Skip to content
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

Following Friendica user fails #789

Closed
rhaamo opened this issue Apr 3, 2017 · 10 comments
Closed

Following Friendica user fails #789

rhaamo opened this issue Apr 3, 2017 · 10 comments
Labels
bug Something isn't working

Comments

@rhaamo
Copy link

rhaamo commented Apr 3, 2017

I'm trying to follow someone using Friendica (snarl.de) and it fails, is this supported ?
The search of the user works, not following.

Summary:

[httplog] GET https://snarl.de/xrd/?uri=xxx@snarl.de completed with status code 200 in 0.08142168261110783 seconds
...
2017-04-03T16:40:56.264Z 4847 TID-xxx WARN: Goldfinger::Error: Invalid response mime type: text/html

Full traceback:

Looking up webfinger for xxx@snarl.de
[httplog] GET https://snarl.de/.well-known/host-meta completed with status code 200 in 0.08853638544678688 seconds
[httplog] GET https://snarl.de/xrd/?uri=xxx@snarl.de completed with status code 200 in 0.08142168261110783 seconds
2017-04-03T16:40:56.264Z 4847 TID-xxx AfterRemoteFollowWorker JID-xxx INFO: fail: 1.778 sec
2017-04-03T16:40:56.264Z 4847 TID-xxx WARN: {"context":"Job raised exception","job":{"class":"AfterRemoteFollowWorker","args":[73],"retry":5,"queue":"default","jid":"xxx","created_at":1491237654.483586,"enqueued_at":1491237654.483678,"error_message":"Invalid response mime type: text/html","error_class":"Goldfinger::Error","failed_at":1491237656.263545,"retry_count":0},"jobstr":"{\"class\":\"AfterRemoteFollowWorker\",\"args\":[73],\"retry\":5,\"queue\":\"default\",\"jid\":\"xxx\",\"created_at\":1491237654.483586,\"enqueued_at\":1491237654.483678}"}
2017-04-03T16:40:56.264Z 4847 TID-xxx WARN: Goldfinger::Error: Invalid response mime type: text/html
2017-04-03T16:40:56.264Z 4847 TID-xxx WARN: /home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/goldfinger-1.1.2/lib/goldfinger/result.rb:76:in `parse'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/goldfinger-1.1.2/lib/goldfinger/result.rb:19:in `initialize'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/goldfinger-1.1.2/lib/goldfinger/client.rb:32:in `new'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/goldfinger-1.1.2/lib/goldfinger/client.rb:32:in `finger'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/goldfinger-1.1.2/lib/goldfinger.rb:24:in `finger'
/home/mastodon/live/app/services/follow_remote_account_service.rb:25:in `call'
/home/mastodon/live/app/services/fetch_remote_account_service.rb:30:in `process_atom'
/home/mastodon/live/app/services/fetch_remote_account_service.rb:13:in `call'
/home/mastodon/live/app/workers/after_remote_follow_worker.rb:10:in `perform'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:158:in `execute_job'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:138:in `block (4 levels) in process'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/rails.rb:86:in `block in call'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_support/execution_wrapper.rb:85:in `wrap'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/rails.rb:85:in `call'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:133:in `block (3 levels) in process'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/logging.rb:32:in `with_context'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/middleware/chain.rb:133:in `invoke'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:132:in `block (2 levels) in process'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:174:in `stats'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:131:in `block in process'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq.rb:35:in `block in <module:Sidekiq>'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:126:in `process'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:82:in `process_one'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/processor.rb:70:in `run'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/util.rb:17:in `watchdog'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/sidekiq-4.2.7/lib/sidekiq/util.rb:25:in `block in safe_thread'
@swaldie swaldie added the bug Something isn't working label Apr 3, 2017
@warpsync
Copy link

warpsync commented Apr 15, 2017

It is possible to follow a Friendica account through the link like https://yourmastodon.instance/authorize_follow?acct=acct:remoteuser@friendica.instance. Maybe a simple link conversion from the Friendica format to the mastodon format is a solution.

@schiessle
Copy link

schiessle commented Oct 24, 2017

I have a similar problem. People can follow me on Friendica from GNU Social, Pleroma, Friendica and Diaspora but not from Mastodon. You can find more information here, including the log files from my Friendica server: friendica/friendica#3822

@annando
Copy link

annando commented Oct 24, 2017

When trying to follow the Friendica account from @schiessle from mastodon.social I'm getting "500 Internal Server Error" as an answer.

Calling https://mastodon.social/authorize_follow?acct=user@friendica.server is returned with a "We're sorry, but something went wrong on our end."

It would be great if a mastodon admin could have a look at the logfiles.

@schiessle
Copy link

In order to try it and check the mastodon logs, the Friendica account in question is here: https://soc.schiessle.org/~bjoern

@Alkarex
Copy link
Contributor

Alkarex commented Oct 24, 2017

For the record, my Friendica account is also generating an error 500 in Mastodon: https://f.a80.fr/profile/alkarex

@nightpool
Copy link
Member

Did some digging—it appears that this is a duplicate of #4254 and has to do with an interaction between the HTTP library we use and the way Apache processes HTTP2 upgrades. There's more details at the linked issue, and see also httprb/http#422 and httprb/http#433 for the discussion of this upstream.

@nightpool
Copy link
Member

@schiessle @annando @Alkarex it appears that the issue you reported (which I reproduced and spent some time debugging today) is structurally different from the original issue this ticket was created to track, which seems to have gotten fixed. In that case I think I'm going to close out this issue in favor of #4254—does anyone have a problem with that?

@annando
Copy link

annando commented Oct 25, 2017

@nightpool From my point of view the original issue was fixed with the latest version of Friendica. The behaviour with Friendica seems to be identical to the one that was described with GNU Social in issue #4254 - so I guess you can close this here.

@Alkarex
Copy link
Contributor

Alkarex commented Oct 25, 2017

Ok. And indeed, disabling HTTP/2 on my Friendica server seems to help.

abcang added a commit to pixiv/mastodon that referenced this issue Jan 22, 2018
…andalone_compose

Fix visibility modal on standalone compose
abcang added a commit to pixiv/mastodon that referenced this issue Jan 25, 2018
@rhaamo
Copy link
Author

rhaamo commented Feb 5, 2018

Looks fixed for me, closing.

@rhaamo rhaamo closed this as completed Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants