上图是个非常简单的demo,
当我用了梯子时,运行命令:deno run --allow-all server.ts
结果报错:
error: error sending request for url (https://deno.land/x/oak/context.ts): error trying to connect: invalid dnsname
Imported from “https://deno.land/x/oak/mod.ts:11”
当我不用梯子时:
error: error sending request for url ((https)://raw.githubusercontent.com/pillarjs/path-to-regexp/v6.1.0/src/index.ts): error trying to connect: dns error: 请求的名称有效,但是找不到请求的类型的数据。 (os error 11004)
而且当我访问deno官网时:
Failed to get directory listing
Got an error (403) while querying the GitHub API: {“message”:“API rate limit exceeded for 162.245.239.68. (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)”,“documentation_url”:"(这里假装是https)://developer.github.com/v3/#rate-limiting"}
(。。。新用户只能上传一张图片)
我已经被这个问题困扰好久了,有人遇到吗,求救