Skip to content

Commit 2c7f40c

Browse files
Fix docs to list exact internal-whitespace error message
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent 1a2f243 commit 2c7f40c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/tasks/streams.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,14 @@ Validation errors use these exact messages:
697697

698698
- `baseURL must not be empty`
699699
- `baseURL must be a valid absolute URL`
700-
- `baseURL must not contain internal whitespace characters (including invisible separators)`
700+
- `baseURL must not contain internal whitespace characters`
701701
- `baseURL must use http or https protocol`
702702
- `baseURL must not include query parameters or hash fragments`
703703
- `baseURL must not include username or password credentials`
704704

705+
The internal-whitespace error also applies to invisible separator characters
706+
like `\u200B`, `\u200C`, `\u200D`, `\u2060`, and `\uFEFF`.
707+
705708
When multiple issues are present, validation order is deterministic:
706709
internal whitespace → protocol → query/hash → credentials.
707710

packages/ai/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,14 @@ Validation errors use these exact messages:
204204

205205
- `baseURL must not be empty`
206206
- `baseURL must be a valid absolute URL`
207-
- `baseURL must not contain internal whitespace characters (including invisible separators)`
207+
- `baseURL must not contain internal whitespace characters`
208208
- `baseURL must use http or https protocol`
209209
- `baseURL must not include query parameters or hash fragments`
210210
- `baseURL must not include username or password credentials`
211211

212+
The internal-whitespace error also applies to invisible separator characters
213+
like `\u200B`, `\u200C`, `\u200D`, `\u2060`, and `\uFEFF`.
214+
212215
When multiple issues are present, validation order is deterministic:
213216
internal whitespace → protocol → query/hash → credentials.
214217

0 commit comments

Comments
 (0)