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

Event not found #1

Closed
alittlebitofit opened this issue May 9, 2019 · 6 comments
Closed

Event not found #1

alittlebitofit opened this issue May 9, 2019 · 6 comments

Comments

@alittlebitofit
Copy link

Hello, I tried your script but I get the following error:

bash: !asfLdzLnOdGRkdPZWu: event not found

That room ID is just a dummy one (from your example) and yes I used the original room ID I intended to.

Is this method outdated? Since I don't see /_matrix/client/r0 in the URL.

Instead I see this: https://riot.im/app/#/room/!asfLdzLnOdGRkdPZWu:example.org

@jooert
Copy link
Owner

jooert commented May 10, 2019

I haven't used this in a while, but in principle this should still work, as the API is still the same (see spec). However, I would suggest using the new /roomnick command instead (see PR).

If you are still interested in debugging this, where do you see this:

Instead I see this: https://riot.im/app/#/room/!asfLdzLnOdGRkdPZWu:example.org

This method communicates directly with a matrix homeserver and thus should be independent of Riot.

@alittlebitofit
Copy link
Author

/roomnick command works.
I see the https URL in the address bar.

Can you please try your script again and see if it still works?

@jooert
Copy link
Owner

jooert commented May 11, 2019

I just tried it for myself, it still works for me. I suppose you have to quote the room name, because the exclamation mark ! is a special character in bash.

@alittlebitofit
Copy link
Author

Did you mean room "ID" instead of room "name" ?
If yes, then yes I quoted the room ID and still find the same bash: [room ID]: event not found error.

@alittlebitofit
Copy link
Author

alittlebitofit commented May 12, 2019

You know what worked! Escaping the !.

You just need a backslash before the exclamation mark. \!

Maybe you did put the backslash in the example command but it got escaped too. 😅

And one more thing, you don't need to quote the room ID, just escape the !.

So the whole command that worked for me is:

./set_displayname \!asfLdzLnOdGRkdPZWu:example.org "John Doe" "@johndoe:example.org" [password]

And thanks for the script ^^.

@jooert
Copy link
Owner

jooert commented May 16, 2019

Yes, I meant the room ID. Glad, that you got the script to work! Actually, it also works with quoting, but you need to use single quotes instead of double ones. I use fish-shell where the exclamation mark is no special character that's why it worked for me.

@jooert jooert closed this as completed May 16, 2019
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