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

Attachment.Text can cause request URI to be > 65535 characters #238

Open
jsblock78 opened this issue Apr 23, 2020 · 0 comments
Open

Attachment.Text can cause request URI to be > 65535 characters #238

jsblock78 opened this issue Apr 23, 2020 · 0 comments

Comments

@jsblock78
Copy link

If PostMessageAsync() is called passing attachment whose text is large, the call will fail due to:

System.AggregateException: One or more errors occurred. (Invalid URI: The Uri string is too long.)

---> System.UriFormatException: Invalid URI: The Uri string is too long.

at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)

at System.Uri.EscapeDataString(String stringToEscape)

at SlackAPI.RequestStateForTask`1.ExecutePost()

Why is this data not passed in the body of the request?

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