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

Error 500 when inviting external email in a DM #856

Closed
appndigital opened this issue Feb 17, 2023 · 11 comments · Fixed by #871
Closed

Error 500 when inviting external email in a DM #856

appndigital opened this issue Feb 17, 2023 · 11 comments · Fixed by #871
Assignees
Labels
android bug Something isn't working

Comments

@appndigital
Copy link
Contributor

When using the external email invitation, the Room is created but stays empty.
The webservice createRoom send back an 500 error when posting a third party email

In order to reproduce, go to home -> Kebab menu -> Invite to join -> put email address and validate

@odelcroi odelcroi changed the title Error 500 when inviting external email Error 500 when inviting external email in a DM Feb 17, 2023
@odelcroi
Copy link
Member

@giomfo @yostyle the invititationby email invitation to a (new) external user to a DM seems to be broken

@odelcroi odelcroi added the bug Something isn't working label Feb 17, 2023
@jdauphant
Copy link
Contributor

It's 2.7.0 or before ?

@jdauphant
Copy link
Contributor

Apparently it's the case from Support

@giomfo
Copy link
Contributor

giomfo commented Feb 21, 2023

@giomfo @yostyle the invititationby email invitation to a (new) external user to a DM seems to be broken

I will have a look on this

@giomfo giomfo self-assigned this Feb 21, 2023
@giomfo
Copy link
Contributor

giomfo commented Feb 22, 2023

I believed that this error was due to a problem server side, but I succeeded to invite an external email account from Tchap-iOS, so this is an actual issue in Tchap-Android
I investigated the request built client side during this invite, I failed to find what is wrong. I will check with Ops the logs server side to have more information on this 500 Internal Server Error

@giomfo
Copy link
Contributor

giomfo commented Feb 28, 2023

@appndigital Can you please try to reproduce on your side this issue (FYI I reproduced in Prod)

@giomfo
Copy link
Contributor

giomfo commented Feb 28, 2023

According to my last investigation, the error happened server side when the server tries to invite the email in the created DM. The error means the id_access_token provided by the Tchap-Android client is not correct.
This token is one of the Invite3pid parameters:
image

@NicolasBuquet @appndigital :

  • you should check if the terms of the Id server has been correctly marked as accepted locally.
  • You should check if the token is retrieved from the right Id server (several Id servers exist in Tchap infra)

@NicolasBuquet
Copy link
Contributor

Fix removed by #949

@jdauphant
Copy link
Contributor

Il faudra corriger les erreurs en base de données une fois le correctif en prod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants