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

Connecting to Azure Servicebus - Handling special characters in key #1798

Open
pajoma opened this issue Sep 25, 2023 · 0 comments
Open

Connecting to Azure Servicebus - Handling special characters in key #1798

pajoma opened this issue Sep 25, 2023 · 0 comments

Comments

@pajoma
Copy link

pajoma commented Sep 25, 2023

I created a new azure servicebus resource and tried the following connection URL (in Airflow, values as examples)

azureservicebus://MySharedAccessKey:2+x9jI6mubSX3s/XhAfA34WWSh2Vif+bxbJWZsaG=@my-namespace

which resulted in the error invalid literal for int() with base 10: 'x9jI6mubSX3s'. The airflow documentation proposed to replace the character / with %2F

azureservicebus://MySharedAccessKey:2+x9jI6mubsx3Sss3s%2FXhAfA34WWSh2Vif+bxbJWZsaG=@my-namespace

which helped for the parsing, but resulted in a 401 Unauthorized (InvalidSignature: The token has an invalid signature)

I managed to connect to the queue by regenerating the key until I got one with a special character.

The issue is mentioned in the source, but I don't see a solution there. Maybe print a log message with the hint to quote the / in the connection string (which still doesn't address the issue, why a quoted string raises the unauthorized error)

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