cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.86k stars 239 forks source link

On YunoHost (or outside of it), client dies when I try to type in my own homeserver on the sign in page #165

Closed ghost closed 2 years ago

ghost commented 2 years ago

Describe the bug

On my Matrix YunoHost instance (https://cinny.example.com) ((or on the https://app.cinny.in/ one)), when typing in "example.com" into the Homeserver section, it says something like "connecting to example.com" for less than a second, then the entire webpage becomes reduced to this (pay attention to the <body></body>):

<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="https://api.fontshare.com/css?f[]=supreme@300,301,400,401,500,501,700,701&display=swap" rel="stylesheet"><title>Cinny</title><meta name="name" content="Cinny"><meta name="author" content="Ajay Bura"><meta name="description" content="A Matrix client where you can enjoy the conversation using simple, elegant and secure interface protected by e2ee with the power of open source."><meta name="keywords" content="cinny, cinnyapp, cinnychat, matrix, matrix client, matrix.org, element"><meta property="og:title" content="Cinny"><meta property="og:url" content="https://cinny.in"><meta property="og:image" content="https://cinny.in/assets/favicon-48x48.png"><meta property="og:description" content="A Matrix client where you can enjoy the conversation using simple, elegant and secure interface protected by e2ee with the power of open source."><meta name="theme-color" content="#000000"><link rel="shortcut icon" href="assets/favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="48x48" href="assets/favicon-48x48.png"><link rel="manifest" href="assets/manifest.json"><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#fff"><meta name="application-name" content="Cinny"><link rel="apple-touch-icon" sizes="57x57" href="assets/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="assets/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="assets/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="assets/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="assets/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="assets/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="assets/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="assets/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="167x167" href="assets/apple-touch-icon-167x167.png"><link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon-180x180.png"><link rel="apple-touch-icon" sizes="1024x1024" href="assets/apple-touch-icon-1024x1024.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="Cinny"><meta name="msapplication-TileColor" content="#fff"><meta name="msapplication-TileImage" content="assets/mstile-144x144.png"><meta name="msapplication-config" content="assets/browserconfig.xml"><script defer="defer" src="polyfill.a9097dc82278a0bb6197.bundle.js"></script><script defer="defer" src="main.f7cebdc908f498e40162.bundle.js"></script><link href="main.a72029e50e3bd5d498be.bundle.css" rel="stylesheet"><script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></head><body id="appBody"><div id="root"></div></body></html>

It is impossible to login.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://cinny.example.com/ (or https://app.cinny.in/)
  2. Type example.com in the Homeserver section

Expected behavior

The webpage does not ENTIRELY DISAPPEAR and I am able to login to my homeserver.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

Add any other context about the problem here.

ajbura commented 2 years ago

Fixed in https://github.com/ajbura/cinny/releases/tag/v1.5.1

ghost commented 2 years ago

Thanks for the quick fix.