question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publishing alias requires it both be taken and not, becoming impossible

See original GitHub issue

Steps to reproduce

  1. attempt to publish an alternate room alias

Outcome

What did you expect?

Alternate alias should submit as-entered

What happened instead?

According to the synapse logs, Element is attempting to query for the alias with an extra “#” on the front, causing an error that leaves it unable to publish the alias.

pic-selected-220201-0615-43

pic-selected-220201-0612-38

Synapse (1.50.2) log:

Feb 01 06:11:56 synapse[184312]: 2022-02-01 06:11:56,220 - root - 262 - WARNING - GET-236997 - Error retrieving alias
Feb 01 06:11:56 synapse[184312]: 2022-02-01 06:11:56,220 - synapse.http.server - 95 - INFO - GET-236997 - <XForwardedForRequest at 0x7fdb20704400 method='GET' uri='/_matrix/client/r0/directory/room/%23%23testingalias456%3Amatrix.org' clientproto='HTTP/1.0' site='8008'> SynapseError: 404 - Room alias ##testingalias456:matrix.org not found
Feb 01 06:11:56 synapse[184312]: 2022-02-01 06:11:56,224 - synapse.http.matrixfederationclient - 607 - INFO - GET-236998 - {GET-O-256879} [matrix.org] Got response headers: 404 Not Found

Attempting to exclude the “#” at the front doesn’t work: pic-selected-220201-0612-54

Operating system

Arch Linux

Browser information

Firefox 96

URL for webapp

develop.element.io

Application version

Element version: d731a2561933-react-afe6021c9a06-js-51f3fac87be4 Olm version: 3.2.8

Homeserver

private instance, but was able to replicate client-side error with matrix.org

Will you send logs?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
t3chguycommented, Feb 1, 2022

Yup, can reproduce, this field is checking the alias is unused which is backwards to what the field needs

0reactions
BurnyBoicommented, Feb 1, 2022

It worked there as well. I just looked inside matrix-react-sdk in my node_modules and it looks like yarn still provided me 3.39.0 rather than 3.39.1, even on a fresh pull and run of yarn. That explains why I still don’t have it. I guess I could either try to force it to pull the newer one or just wait until I get it naturally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exercise 3: Publish a Version and Create an Alias - Amazon Lex
In this exercise, you do the following: Publish a new version of the bot. Amazon Lex takes a snapshot copy of the $LATEST...
Read more >
Unable to enter an alias in Table MAC desktop.
I have a column that I need to add an alias. I click on that column and see the alias option.
Read more >
Can I submit a paper under an alias so as to avoid trouble in ...
First, it goes without saying that you should not go to any conference in person with your research. Publish your research in a...
Read more >
The extern alias 'xxx' was not specified in a /reference option
I have the same problem and I was able to reproduce the issue. It turns out reference aliases are ignored on projects containing...
Read more >
Pseudonyms for Authors: Self-Publishing Pen Name Tips
Make sure you research to see whether the pen name is already being used by another author or artists. Don't skip this step!...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found