denoland / denoland/deploy_feedback
[Bug]: deno deploy serverless cannot access ipv6 network
- Dominant language
- No language data
- Stars
- 79
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
```
IpNotFoundError: Could not get the public IP address
at file:///node_modules/.deno/public-ip@6.0.1/node_modules/public-ip/index.js:193:10
at Object.runMicrotasks (ext:core/01_core.js:934:26)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:53:10)
at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
at eventLoopTick (ext:core/01_core.js:189:21)
at async file:///node_modules/.deno/public-ip@6.0.1/node_modules/public-ip/index.js:220:15
at async file:///src/main.ts:7:15
at async ext:deno_http/00_serve.js:457:18
Caused by RequestError: error sending request for url (https://api6.ipify.org/): error trying to connect: tcp connect error: Cannot assign requested address (os error 99)
at HttpsClientRequest. (file:///node_modules/.deno/got@12.6.1/node_modules/got/dist/source/core/index.js:790:107)
at Object.onceWrapper (ext:deno_node/_stream.mjs:1931:30)
at HttpsClientRequest.emit (ext:deno_node/_stream.mjs:1859:11)
at node:http:534:16
at eventLoopTick (ext:core/01_core.js:182:7)
at async node:http:447:21 {
name: "IpNotFoundError"
}
```
### Steps to reproduce
```ts
import { publicIp, publicIpv4, publicIpv6 } from "npm:public-ip@6.0.1";
await Deno.serve(async (req: Request) =>
new Response(
JSON.stringify({
"internal": Deno.networkInterfaces(),
"public": {
ipv6: await publicIpv6(),
ipv4: await publicIpv4(),
},
}),
)
);
```
### Expected behavior
```json
{
"internal": [
{
"family": "IPv6",
"name": "以太网 2",
"address": "240e:388:9c06:c500:1165:ba19:ad8f:5834",
"netmask": "ffff:ffff:ffff:ffff::",
"scopeid": 0,
"cidr": "240e:388:9c06:c500:1165:ba19:ad8f:5834/64",
"mac": "00:e0:4c:68:35:54"
},
{
"family": "IPv6",
"name": "以太网 2",
"address": "240e:388:9c06:c500:8c8d:fa95:f50e:1689",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"scopeid": 0,
"cidr": "240e:388:9c06:c500:8c8d:fa95:f50e:1689/128",
"mac": "00:e0:4c:68:35:54"
},
{
"family": "IPv6",
"name": "以太网 2",
"address": "fe80::a135:a40f:696f:daf5",
"netmask": "ffff:ffff:ffff:ffff::",
"scopeid": 9,
"cidr": "fe80::a135:a40f:696f:daf5/64",
"mac": "00:e0:4c:68:35:54"
},
{
"family": "IPv4",
"name": "以太网 2",
"address": "192.168.31.108",
"netmask": "255.255.255.0",
"scopeid": null,
"cidr": "192.168.31.108/24",
"mac": "00:e0:4c:68:35:54"
},
{
"family": "IPv6",
"name": "Loopback Pseudo-Interface 1",
"address": "::1",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"scopeid": 0,
"cidr": "::1/128",
"mac": "00:00:00:00:00:00"
},
{
"family": "IPv4",
"name": "Loopback Pseudo-Interface 1",
"address": "127.0.0.1",
"netmask": "255.0.0.0",
"scopeid": null,
"cidr": "127.0.0.1/8",
"mac": "00:00:00:00:00:00"
}
],
"public": {
"ipv6": "240e:388:9c06:c500:8c8d:fa95:f50e:1689",
"ipv4": "116.238.127.118"
}
}
```
### Environment
_No response_
### Possible solution
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.