git push heroku master失败“HTTP 400 curl 22请求的URL返回错误”

我正在尝试推送只显示“hello,world”的rails应用程序。
然后我遇到了如下错误。
我想知道如何解决这个问题。

$ git push heroku master
枚举对象:88,完成。
计数对象:100%(88/88),完成。
使用最多4个线程进行增量压缩。
压缩对象:100%(73/73),完成。
书写对象:100%(88/88),22.29 KiB | 1.71 MiB / s,完成了。
总计88(delta 2),重复使用0(delta 0)
错误:RPC失败; HTTP 400 curl 22请求的URL返回错误:400 Bad Request
致命:远程端意外挂断
一切都是最新的

我的程序如下。
1.创建如下所示的rails应用程序。
rails new sample
2.fix路由和application_controller来显示你好,世界。 3.更改Gemfile。
3-1.declare sqlite3开发和测试组gem’sqlite3 gem 'sqlite3'
生产组中的3-2.declare pg gem 'pg', '0.20.0'
4.执行bundle install --without production
5.执行git add .
6.execute git commit -m "initial commit for heroku"
7.确认它是否可以通过rails s并访问localhost:3000
8.执行heroku login并输入id和密码。
9.execute heroku keys:add并通过此操作创建SSH密钥。
10.execute heroku create
11.执行git push heroku master然后我收到了错误

每个程序的版本如下。
* Rails 5.1.6
* heroku / 7.14.1 win32-x64 node-v10.9.0

这是什么错误,如何避免此错误?
如果您需要更多信息,请告诉我。


我在下面添加了我的gem文件。

 source 'https://rubygems.org' # git_source(:github) do |repo_name| # repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") # "https://github.com/#{repo_name}.git" # end # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.1.6' # Use Puma as the app server gem 'puma', '~> 3.7' # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby gem 'rails_12factor' # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '~> 4.2' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.5' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development group :development, :test do # Use sqlite3 as the database for Active Record gem 'sqlite3' # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] # Adds support for Capybara system testing and selenium driver gem 'capybara', '~> 2.13' gem 'selenium-webdriver' end group :development do # Access an IRB console on exception pages or by using  anywhere in the code. gem 'web-console', '>= 3.3.0' end group :production do gem 'pg', '0.20.0' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 

导航到存储库后,运行以下命令将缓冲区增加到500MB:

 git config http.postBuffer 524288000