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

[BUG]: Error Widget #807

Closed
container1 opened this issue Jan 15, 2024 · 3 comments
Closed

[BUG]: Error Widget #807

container1 opened this issue Jan 15, 2024 · 3 comments

Comments

@container1
Copy link

  • Operating system: android
  • Version: 1.17.1

Exception

Invalid argument(s): HTML had 6 top level elements but 1 expected

StackTrace

#0 new Element.html (package:html/dom.dart:533)
#1 HtmlMessage._linkifyHtml (package:fluffychat/pages/chat/events/html_message.dart:54)
#2 HtmlMessage._linkifyHtml (package:fluffychat/pages/chat/events/html_message.dart:33)
#3 HtmlMessage._linkifyHtml (package:fluffychat/pages/chat/events/html_message.dart:33)
#4 HtmlMessage._linkifyHtml (package:fluffychat/pages/chat/events/html_message.dart:33)
#5 HtmlMessage.build (package:fluffychat/pages/chat/events/html_message.dart:91)
#6 StatelessElement.build (package:flutter/src/widgets/framework.dart:5541)
#7 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5471)
#8 Element.rebuild (package:flutter/src/widgets/framework.dart:5187)
#9 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5453)

@container1
Copy link
Author

container1 commented Jan 15, 2024

Occured at
#synapse:matrix.org
From
{
"content": {
"body": "When I test with ansible-playbook -i inventory/hosts setup.yml --tags=self-check I get:\n\nfatal: [my.domain.com]: FAILED! => changed=false \n msg: 'Failed checking that the well-known file for Client Discovery is configured at `domain.com` (checked endpoint: `https://domain.com/.well-known/matrix/client`). Is port 443 open in your firewall? Full error: {''content'': ''<html>\\r\\n<head><title>404 Not Found</title></head>\\r\\n<body>\\r\\n<center><h1>404 Not Found</h1></center>\\r\\n<hr><center>nginx/1.18.0 (Ubuntu)</center>\\r\\n</body>\\r\\n</html>\\r\\n'', ''redirected'': False, ''url'': ''https://domain.com/.well-known/matrix/client'', ''status'': 404, ''server'': ''nginx/1.18.0 (Ubuntu)'', ''date'': ''Sun, 14 Jan 2024 15:58:33 GMT'', ''content_type'': ''text/html'', ''content_length'': ''162'', ''connection'': ''close'', ''elapsed'': 0, ''changed'': False, ''failed'': True, ''msg'': ''Status code was 404 and not [200]: HTTP Error 404: Not Found''}'\n\n",
"format": "org.matrix.custom.html",
"formatted_body": "

When I test with ansible-playbook -i inventory/hosts setup.yml --tags=self-check I get:

\n
fatal: [my.domain.com]: FAILED! => changed=false \n  msg: 'Failed checking that the well-known file for Client Discovery is configured at domain.com (checked endpoint: https://domain.com/.well-known/matrix/client). Is port 443 open in your firewall? Full error: {''content'': ''<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx/1.18.0 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n'', ''redirected'': False, ''url'': ''https://domain.com/.well-known/matrix/client'', ''status'': 404, ''server'': ''nginx/1.18.0 (Ubuntu)'', ''date'': ''Sun, 14 Jan 2024 15:58:33 GMT'', ''content_type'': ''text/html'', ''content_length'': ''162'', ''connection'': ''close'', ''elapsed'': 0, ''changed'': False, ''failed'': True, ''msg'': ''Status code was 404 and not [200]: HTTP Error 404: Not Found''}'\n
\n",
"m.mentions": {},
"msgtype": "m.text"
},
"type": "m.room.message",
"event_id": "$hSaNMll_f1WPyegiP6E-wWHLiZliARE77iiPHGQ1K_k",
"room_id": "!ehXvUhWNASUkSLvAGP:matrix.org",
"sender": "@padreug:matrix.org",
"origin_server_ts": 1705250082532,
"unsigned": {
"age": 49586190
}
}
Screenshot_20240115-073509

@LFd3v
Copy link

LFd3v commented Jan 17, 2024

I think this is a dup of #805 (HTML rendering issues in the new version?).

@container1
Copy link
Author

Sorry, have not recognized that it's been already stated with #805! 😯
You are right 👍😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants