Skip to content

Commit dfbd65f

Browse files
Apply suggestions from code review
Co-authored-by: ToriLindsay <[email protected]>
1 parent f064f18 commit dfbd65f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/workers/observability/errors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default {
139139
Uncaught (in promise) Error: Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler.
140140
```
141141

142-
This error occurs when you attempt to share input/output (I/O) objectssuch as streams, requests, or responses created by one invocation of your Worker in the context of a different invocation.
142+
This error occurs when you attempt to share input/output (I/O) objects (such as streams, requests, or responses) created by one invocation of your Worker in the context of a different invocation.
143143

144144
In Cloudflare Workers, each invocation is handled independently and has its own execution context. This design ensures optimal performance and security by isolating requests from one another. When you try to share I/O objects between different invocations, you break this isolation. Since these objects are tied to the specific request they were created in, accessing them from another request's handler is not allowed and leads to the error.
145145

@@ -173,7 +173,7 @@ export default {
173173
};
174174
```
175175

176-
If you need to share state across requests, consider using [Durable Objects](/durable-objects/), or if you need to cache data across requests, consider using [Workers KV](/kv/).
176+
If you need to share state across requests, consider using [Durable Objects](/durable-objects/). If you need to cache data across requests, consider using [Workers KV](/kv/).
177177

178178
## Errors on Worker upload
179179

0 commit comments

Comments
 (0)