我无法从Vagrant中的外部API调用获得响应

时间:2019-02-18 18:16:57

标签: vagrant

我有这样一个无业游民的文件:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"
  config.vm.hostname = "cat-core"

  config.vm.synced_folder "code/", "/code"

  # Assign Address
  config.vm.network 'private_network', ip: '192.168.33.10'

  config.vm.provider "virtualbox" do |vb|
    vb.memory = "1024"
  end

  config.vm.provision :shell, :path => "config/bootstrap.sh"
  config.vm.provision :shell, :path => "config/after.sh", run: 'always'
end

每当我调用https://api.binance.com/api/v1/exchangeInfo端点时,它要么给出NULL正文,要么关闭连接的速度太快。

如何阻止这种情况发生?

0 个答案:

没有答案