-
Notifications
You must be signed in to change notification settings - Fork 14
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
Exotic characters in request leads to "Missing content with timeout."-error response. #54
Comments
I tried the latest xoom-starter and got a 400 bad request back in dev tools (the UI didn't show any errors):
|
This is an interesting issue. We've discovered that the browser indicates a |
Fixed by vlingo/xoom-http@4e244c4 |
The problem was the difference in length of the bytes vs the characters in the decoded string, where the bytes length is used in the |
I have been playing around with a XOOM Starter generated example, not using the dispatch-feature for resources. I have a running version with a Sapper-based ui, capable of creating instances of my domain object, and modify them. However, whenever I use "non-standard" characters, like æ, ø, å or é in my request data I seem to get a "Missing content with timeout."-error response.
I reckon it has something to do with encoding and content length mismatch due to the usage of "double-byte" characters, but I've been unable to figure out the remedy. I've also noticed this behaviour in the XOOM starter app itself, when I naively tried to create an aggregate with a danish name containing the danish letter 'ø'. I wonder if this a feature or a bug? (The vlingo version was 1.5.1, btw).
Below is the excerpt of an example request that fails (produced when pushing the Generate-button on the last page of the XOOM starter UI). The only difference in this request, from one that succeeds, is that I've replaced the 'e' in 'project' with an 'æ' in the project directory path (see the "projectDirectory" path below).
(copied from chromes DevTools-section):
GENERAL:
REQUEST HEADERS:
RESPONSE HEADERS:
REPONSE BODY
Another difference from the succeeding request, is the Content-Length, which is 3249.
(Fun-fact: The danish letter 'æ' is the concatenation of 'a' and 'e' and is pronounced like the second 'e' in 'eject')
The text was updated successfully, but these errors were encountered: