异常在雾中声明来自云队列的消息

时间:2014-01-31 20:10:02

标签: fog rackspace

我一直在运行一个消耗Rackspace Cloud Queue消息的流程已有一段时间了。不久前,我开始在我创建声明的行中的日志中看到此异常:

undefined method `split' for nil:NilClass
/home/ash/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.19.0/lib/fog/rackspace/models/queues/claim.rb:112:in `create'
/home/ash/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.19.0/lib/fog/rackspace/models/queues/claim.rb:46:in `save'
/home/ash/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.19.0/lib/fog/rackspace/models/queues/claims.rb:36:in `create'

改变了什么?这是雾问题,还是Cloud Queues有问题?

1 个答案:

答案 0 :(得分:3)

事实证明,在服务器升级之后,Cloud Queues开始在其某些响应中使用小写HTTP标头。具体而言,Location现在为locationContent-Type已更改为content-type。 HTTP指定HTTP标头不区分大小写,但从1.19.0开始,Fog的标头访问不是。

现在已在master中修复此问题,因此您可以通过将此添加到Gemfile来依赖最新代码:

gem 'fog', github: 'fog/fog'