Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

ipv6 appservice url not working #13081

Closed
martinetd opened this issue Jun 16, 2022 · 2 comments
Closed

ipv6 appservice url not working #13081

martinetd opened this issue Jun 16, 2022 · 2 comments
Labels
A-Application-Service Related to AS support

Comments

@martinetd
Copy link

martinetd commented Jun 16, 2022

Description

Trying to set url: http://[::1]:8010 in one of the app_service_config_files: yaml files fails to connect with the following error:

synapse[3490779]: synapse.appservice.api: [as-recoverer-telegram-5] push_bulk to http://[::1]:8010/transactions/1 threw exception(InvalidCodepoint) Codepoint U+003A at position 1 of '::1' not allowed args=("Codepoint U+003A at position 1 of '::1' not allowed",)

Steps to reproduce

  • (not sure if actually needed) setup an app service bridge, make it listen on ipv6
  • configure synapse to connect to it with its litteral ipv6 and restart synapse
  • observe the error (after an user tries to talk to one of the bridge bots?)

relevant part of config, main config:

app_service_config_files:
- /var/lib/matrix-synapse/telegram-registration.yaml

yaml file:

id: telegram
as_token: xxx
hs_token: xxx
namespaces:
    users:
    - exclusive: true
      regex: '@tg_.*:homeserver\.my'
    - exclusive: true
      regex: '@tgbot:homeserver\.my'
    aliases:
    - exclusive: true
      regex: \#tg_.*:homeserver\.my
url: http://localhost:8010
sender_localpart: xxx
rate_limited: false

Homeserver

not relevant

Synapse Version

{"server_version":"1.60.0","python_version":"3.9.13"}

Installation Method

Other (please mention below)

Platform

nixpkgs-unstable, using the standard service

Relevant log output

synapse[3490779]: synapse.appservice.api: [as-recoverer-telegram-5]
push_bulk to http://[::1]:8010/transactions/1 threw exception(
   InvalidCodepoint) Codepoint U+003A at position 1 of '::1' not allowed
   args=("Codepoint U+003A at position 1 of '::1' not allowed",)

Anything else that would be useful to know?

a quick search showed that error probably comes from IDNA, but IDNA is not directly called so I have no idea what path it took from synapse/appservice/api.py to that error -- if there's a way to display a full stack trace I'd gladly oblige.

Otherwise it should be trivial to reproduce.

Thank you.

@richvdh
Copy link
Member

richvdh commented Jun 17, 2022

I think this is a duplicate of #4092, though the text of the error has changed slightly in the intervening 4 years.

@richvdh
Copy link
Member

richvdh commented Jun 17, 2022

Duplicate of #4092

@richvdh richvdh marked this as a duplicate of #4092 Jun 17, 2022
@richvdh richvdh closed this as completed Jun 17, 2022
@MadLittleMods MadLittleMods added the A-Application-Service Related to AS support label Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Application-Service Related to AS support
Projects
None yet
Development

No branches or pull requests

3 participants