Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
Tags used for linking issues. [ID: 1172495]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Calling a custom GAS function from an HTML service window fails with a 400 error if the string-type function argument contains character code 8232 (0x2028).
A small code sample that reliably reproduces the issue:
google.script.run.customFunction(String.fromCharCode(8232))
What steps will reproduce the problem?
1. Create a GAS with function "customFunction(string)"
2. Create a HTML service window with JS code google.script.run.customFunction(String.fromCharCode(8232))
3. Execute JS code
Expected: GAS function "customFunction(string)" executed with string argument 0x2028
Instead: NetworkError: Connection failure due to HTTP 400
Please provide any additional information below:
This problem does not occur if the string parameter is encoded with encodeURIComponent() and then decoded.