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

Adding a link returns an HttpRequestException #30

Open
rickvdbosch opened this issue Jan 10, 2025 · 1 comment
Open

Adding a link returns an HttpRequestException #30

rickvdbosch opened this issue Jan 10, 2025 · 1 comment

Comments

@rickvdbosch
Copy link

rickvdbosch commented Jan 10, 2025

Trying to call Post with a URL that starts with https throws an HttpRequestException: Response status code does not indicate success: 406 (Not Acceptable)`.

This happens for both a URL in the text to post as well as with a URL in a separate Uri:

await client.Post("Testing!", new Uri("https://www.github.com"));

await client.Post("Testing! https://www.github.com");

Removing the link does post the message.

Removing the https:// from the link posts the message, but with the URL, of course, not recognized as a link.

await client.Post("Testing! www.github.com");
@a-gubskiy
Copy link
Owner

Sorry, but I can't reproduce this problem. Maybe some network restrictions exist on server which you use to run app?
Client library making some requests to extract metadata from page. Maybe outgoing connections blocked?

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