Skip to content

fix(api): Escape endpoint key in URL#1114

Merged
TwiN merged 2 commits intoTwiN:masterfrom
dpkrane:fix/utf8encoding
May 31, 2025
Merged

fix(api): Escape endpoint key in URL#1114
TwiN merged 2 commits intoTwiN:masterfrom
dpkrane:fix/utf8encoding

Conversation

@dpkrane
Copy link
Contributor

@dpkrane dpkrane commented May 22, 2025

The issue occurred because the configuration file stores an endpoint with a Cyrillic name as-is, while the API request sends the key URL-encoded.
The solution was to apply url.QueryUnescape in the relevant places.

Fix #1100

@twiesing
Copy link
Contributor

Maybe related #1088?

@dpkrane
Copy link
Contributor Author

dpkrane commented May 27, 2025

Maybe related #1088?

Yes, I think so.
You can check it.
Patched code in my forked repo.
Docker container builded from original Dockerfile.

Copy link
Owner

@TwiN TwiN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@TwiN TwiN changed the title ISSUE #1100 | Fix bug with URL encoding fix(api): Encode key in URL May 31, 2025
@TwiN TwiN changed the title fix(api): Encode key in URL fix(api): Encode endpoint key in URL May 31, 2025
@TwiN TwiN changed the title fix(api): Encode endpoint key in URL fix(api): Escape endpoint key in URL May 31, 2025
@TwiN TwiN merged commit 0a9f5d8 into TwiN:master May 31, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Pipe character in endpoint key breaks detailed chart in Chrome

3 participants