Wener Notes

Cloudflare Workers

约 1 分钟阅读

Worker

FAQ

OpenAI API Country, region, or territory not supported

  • Cloudflare 会使用请求的 IP 来发出请求
  • 因此从国内发出的请求还是会被拦截

You have not installed wrangler

bash
node $(dirname $(realpath $(which wrangler)))/install-wrangler.js

Cannot perform I/O on behalf of a different request.

  • Hyperdriver 这种需要每个请求都初始化
  • 全局只能缓存类似 dbUrl 这种
text
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. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: Writable)

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub9 条
Hacker News1 条
其他外链1 条
最近更新commit 11c4f58Edit

On this page