We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nanovms/ops#403
eyberg@:~/nz/nt/node-v11.5.0-linux-x64/bin$ cat config.json { "Args": ["node", "hi.js"], "Files": ["/lib/x86_64-linux-gnu/libresolv.so.2", "/lib/x86_64-linux-gnu/libnss_dns.so.2", "hi.js"] } eyberg@:~/nz/nt/node-v11.5.0-linux-x64/bin$ cat hi.js const http = require('http'); http.get('http://api.nasa.gov/planetary/apod?api_key=DEMO_KEY', (resp) => { let data = ''; // A chunk of data has been received. resp.on('data', (chunk) => { data += chunk; }); // The whole response has been received. Print out the result. resp.on('end', () => { console.log(JSON.parse(data).explanation); }); }).on("error", (err) => { console.log("Error: " + err.message); });
1 socket [1592884962.364664] NET: socket: new tcp fd 18, pcb 0x0000000101801100 1 direct return: 18, rsp 0x76fc2ae8 1 connect [1592884962.368102] NET: connect_tcp: sock 18, tcp state 1, addr ffffffffb65b0734, port 80 [1592884962.370788] NET: connect_tcp_bh: sock 18, tcp state 2, thread 1, lwip_status 0, flags 0x0 1 sleep interruptible (on "sock receive") [1592884962.433713] NET: connect_tcp_complete: sock 18, tcp state 2, pcb 0x0000000101801100, err 0 [1592884962.436679] NET: connect_tcp_bh: sock 18, tcp state 4, thread 1, lwip_status 0, flags 0x1 1 thread_wakeup: 1->1 blocked_on sock receive, RIP=0x70c9c11777 1 run frame 0x0000000101201800, RIP=0x00000070c9c11777 1 clock_gettime 1 clock_gettime: clk_id 6 1 direct return: 0, rsp 0x76fc7098 1 epoll_ctl 1 direct return: 0, rsp 0x76fc3fb8 1 epoll_pwait 1 direct return: 1, rsp 0x76fc3f70 1 clock_gettime 1 clock_gettime: clk_id 6 1 direct return: 0, rsp 0x76fc3f98 1 getsockopt [1592884962.450955] NET: getsockopt: sock 18, type 1, thread 1, level 1, optname 4 , optlen 4 1 sock 18, type 1, thread 1, level 1, optname 4 , optlen 4 1 direct return: -42, rsp 0x76fc3f68
The text was updated successfully, but these errors were encountered:
wjhun
No branches or pull requests
nanovms/ops#403
The text was updated successfully, but these errors were encountered: