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

..._puppetStatusRoom: This fails. A lot. And here is why :) #70

Open
IngwiePhoenix opened this issue Mar 24, 2020 · 2 comments
Open

..._puppetStatusRoom: This fails. A lot. And here is why :) #70

IngwiePhoenix opened this issue Mar 24, 2020 · 2 comments

Comments

@IngwiePhoenix
Copy link

After discovering (on matrix-puppet-mattermost) that usernames are lowercase, I had to also realize that this might as well apply for room names - including the status room.

Although I am basically being spammed the whole time about it, the room is never created, due to a possible mismatch of the room not existing and Synapse either refusing to create it, or creating it but in lowercase, so that the puppeting bridge can't actually join it. In fact...

image

This happens...a lot. :)

Fix: Lowercase usernames and room names.

@IngwiePhoenix
Copy link
Author

I slapped an event listener for unhandled rejections in, and this showed up:

Unhandled Rejection at: Promise Promise {
  <rejected> [M_UNKNOWN_TOKEN: Invalid macaroon passed.] {
    errcode: 'M_UNKNOWN_TOKEN',
    name: 'M_UNKNOWN_TOKEN',
    message: 'Invalid macaroon passed.',
    data: {
      errcode: 'M_UNKNOWN_TOKEN',
      error: 'Invalid macaroon passed.',
      soft_logout: false
    },
    httpStatus: 401
  }
}

Now to find out what that is.

@IngwiePhoenix
Copy link
Author

By tracking down the term to the Matrix API docs and all the way to the module Synapse uses - this one: https://github.com/ecordell/pymacaroons - I figured I might need to change something. So, I swapped my usual values around a little and used my outbound hostname instead of my inbound hostname (localhost:8008 vs matrix.ingwie.io) and also realized I had my URL parameter wrong. After fixing both, the Mattermost bridge is now flooding me with stuff! Eep!

Though, you might find this useful in terms of error prevention and the like. o.o

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

1 participant