dendrite icon indicating copy to clipboard operation
dendrite copied to clipboard

Dendrite 0.13.0 onwards causes unrecognized request on server URL input on Element Android

Open Alexilator opened this issue 1 year ago • 5 comments

Background information

  • Dendrite version or git SHA: 0.13.0+
  • SQLite3 or Postgres?: Postgres
  • Running in Docker?: yes
  • Client used (if applicable): Element Android App

Description

  • What is the problem: since Dendrite-monolith 0.13.0 a login with Element Android is not possible
  • Who is affected: as far as I can tell, everyone using dendrite 0.13.0 onwards and Element Android
  • How is this bug manifesting: "unrecognized request" message below the custom server URL input field.
  • When did this first appear: Dendrite-monolith 0.13.0

Steps to reproduce

  • install / upgrade to dendrite-monolith inside docker 0.13.0 or later
  • input matrix domain of dendrite-monolith in Element Android App
  • error "unrecognized request" will be shown below the input

There is nothing in the container logs regarding the client error.

Alexilator avatar Aug 22 '23 11:08 Alexilator

Which version did you upgrade from?

S7evinK avatar Aug 25 '23 17:08 S7evinK

Which version did you upgrade from?

I upgraded from 0.12.0 but was also able to reproduce with a clean 0.13.0 install.

Alexilator avatar Aug 26 '23 08:08 Alexilator

I had the same issue. Properly setting up a .well-known/matrix/client fixed the issue.

atahanacar avatar Oct 16 '23 13:10 atahanacar

Same issue here. I can confirm that setting up a proper .well-known/matrix/client response solves the issue.

I had to deploy nginx with a static response just for this:

https://github.com/mkroman/k8s/blob/d857aee6c3d4a5d600b9f788a32e2ddc8ae3633d/kustomize/dendrite/base/configmap.nginx-config.yaml#L9-L31

It would be great if Dendrite could provide this endpoint just like it provides the .well-known/matrix/server endpoint.


According to the specs at https://spec.matrix.org/v1.3/client-server-api/#well-known-uri a 404 should immediately trigger a IGNORE and the client should revert to using default values, which in my case would be the base domain.. But for some reason, the android client doesn't do that.

mkroman avatar Nov 17 '23 06:11 mkroman

same error Hope it can be resolved as soon as possible

QAQ5555 avatar Jan 28 '24 16:01 QAQ5555