You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Beta branch - Not supporting special chars in received payload #319
in case the payload contains some special char like ®, the client fails with error:
TypeError: Cannot convert argument to a ByteString because the character at index 10117 has a value of 8482 which is greater than 255.
at Client.fetch (/smee-client/node_modules/undici/index.js:112:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client.onmessage (file:///smee-client/index.js:52:30)
same error
my use case: sending Webhooks from GitHub, Content Type = application/json
[EDIT]
if I switch the method from application/json to urlencoded in GitHub Webhook settings
so smee-client is passing the payload but the receiver doesnt accept it with the error 431
org.eclipse.jetty.http.HttpParser parseFields
Header is too large 8193>8192
I've run into a similar problem, also when sending webhooks from GitHub through smee.
In my case, I found the trigger: the PR title from which an event was triggered had … in the PR title (which is done automatically by GitHub when the commit message of the first commit is too long).
That's clearly not digested well by smee-client.
The change suggested by @wolfy1339 (using charset=utf-8 in content-type) didn't make a difference, same TypeError was raised.
@boegel
Do you hava a code snippet so that i can try it locally?
Seems to be an issue with multibyte characters. Maybe it is not an issue of the smee-client itself but more of the smee.io server. The server is internally manipulating the received payload alot.
Activity
wolfy1339 commentedon Sep 25, 2024
Can you try changing line 82 so it looks like this
Are you sending the payload as JSON or urlencoded?
Dancho80 commentedon Sep 26, 2024
same error
my use case: sending Webhooks from GitHub, Content Type = application/json
[EDIT]
if I switch the method from application/json to urlencoded in GitHub Webhook settings
so smee-client is passing the payload but the receiver doesnt accept it with the error 431
boegel commentedon Jun 12, 2025
I've run into a similar problem, also when sending webhooks from GitHub through smee.
In my case, I found the trigger: the PR title from which an event was triggered had
…in the PR title (which is done automatically by GitHub when the commit message of the first commit is too long).That's clearly not digested well by
smee-client.The change suggested by @wolfy1339 (using
charset=utf-8incontent-type) didn't make a difference, sameTypeErrorwas raised.boegel commentedon Jun 12, 2025
Same problem also happens when event data (like PR comments) include emojis...
Uzlopak commentedon Jun 12, 2025
@boegel
Do you hava a code snippet so that i can try it locally?
Seems to be an issue with multibyte characters. Maybe it is not an issue of the smee-client itself but more of the smee.io server. The server is internally manipulating the received payload alot.
Dancho80 commentedon Oct 29, 2025
any update on that?