Closed atubo2012 closed 3 years ago
Got above error.
...
Get content about blog ,like this:
const got = require('got'); (async () => { try { const response = await got('https://www.googleapis.com/blogger/v3/blogs/4635670594938406451/posts/7881404100950905564?key=xxxxxxxx-xxxxx'); console.log(response); } catch (error) { console.log('error occur :',error); //=> 'Internal server error ...' } })();
But it works in gitpod, I am wondering if it was caused by vpn :(
Got works correctly here.
Solved after environment variable http_proxy is set : http_proxy=http://127.0.0.1:10001 The port number could be found in "Internet option->connection->LAN setting->Proxy". Thank you!
Describe the bug
Actual behavior
Got above error.
...
Expected behavior
Get content about blog ,like this:
...
Code to reproduce
But it works in gitpod, I am wondering if it was caused by vpn :(
Checklist