Skip to content
New issue

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

[production][notices#create] Mongoid::Errors::InvalidType: Field was defined as a(n) Array, but received a Hash with the value... #76

Closed
ndbroadbent opened this issue Sep 1, 2011 · 6 comments

Comments

@ndbroadbent
Copy link
Member

See this exception on Errbit

Mongoid::Errors::InvalidType: Field was defined as a(n) Array, but received a Hash with the value {"method"=>"{anonymous}()", "file"=>"http://d3lvr7yuk4uaui.cloudfront.net/items/domains/w/wuaki.tv.js", "number"=>"1"}.

Summary

URL

http://wuaki.herokuapp.com/notifier_api/v2/notices.xml?data=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%20%20%3Cnotice%20version%3D%222.0%22%3E%20%20%20%20%3Capi-key%3E62316fcc76c9b55b89de6a3a46efeee0%3C/api-key%3E%20%20%20%20%3Cnotifier%3E%20%20%20%20%20%20%3Cname%3Eerrbit_notifier_js%3C/name%3E%20%20%20%20%20%20%3Cversion%3E2.0%3C/version%3E%20%20%20%20%20%20%3Curl%3Ehttps%3A//github.com/jdpace/errbit%3C/url%3E%20%20%20%20%3C/notifier%3E%20%20%20%20%3Cerror%3E%20%20%20%20%20%20%3Cclass%3Esession%3C/class%3E%20%20%20%20%20%20%3Cmessage%3EError%20loading%20script%3C/message%3E%20%20%20%20%20%20%3Cbacktrace%3E%3Cline%20method%3D%22%7Banonymous%7D%28%29%22%20file%3D%22http%3A//d3lvr7yuk4uaui.cloudfront.net/items/domains/w/wuaki.tv.js%22%20number%3D%221%22%20/%3E%3C/backtrace%3E%20%20%20%20%3C/error%3E%20%20%20%20%3Crequest%3E%20%20%20%20%20%20%3Curl%3Ehttp%3A//wuaki.tv/%3Fgclid%3DCKXFjoWO8qoCFZMi3wodgwwHPw%3C/url%3E%20%20%20%20%20%20%3Ccomponent%3Efrontpage%3C/component%3E%20%20%20%20%20%20%3Caction%3Efrontpage%3C/action%3E%20%20%20%20%3Ccgi-data%3E%3Cvar%20key%3D%22HTTP_USER_AGENT%22%3EMozilla/5.0%20%28Windows%3B%20U%3B%20Windows%20NT%205.2%3B%20es-ES%3B%20rv%3A1.9.2.20%29%20Gecko/20110803%20AskTbGOM2/3.12.2.16749%20BTRS5305%20Firefox/3.6.20%3C/var%3E%3C/cgi-data%3E%3C/request%3E%20%20%20%20%3Cserver-environment%3E%20%20%20%20%20%20%3Cproject-root%3Ehttp%3A//wuaki.tv%3C/project-root%3E%20%20%20%20%20%20%3Cenvironment-name%3Eproduction%3C/environment-name%3E%20%20%20%20%3C/server-environment%3E%20%20%3C/notice%3E"

Where

notices#create

Occured

Aug 28 6:37am

Similar

180

Params

{
  "action" => "create",
  "controller" => "notices",
  "data" => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>  <notice version=\"2.0\">    <api-key>62316fcc76c9b55b89de6a3a46efeee0</api-key>    <notifier>      <name>errbit_notifier_js</name>      <version>2.0</version>      <url>https://github.com/jdpace/errbit</url>    </notifier>    <error>      <class>session</class>      <message>Error loading script</message>      <backtrace><line method=\"{anonymous}()\" file=\"http://d3lvr7yuk4uaui.cloudfront.net/items/domains/w/wuaki.tv.js\" number=\"1\" /></backtrace>    </error>    <request>      <url>http://wuaki.tv/?gclid=CKXFjoWO8qoCFZMi3wodgwwHPw</url>      <component>frontpage</component>      <action>frontpage</action>    <cgi-data><var key=\"HTTP_USER_AGENT\">Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.2.20) Gecko/20110803 AskTbGOM2/3.12.2.16749 BTRS5305 Firefox/3.6.20</var></cgi-data></request>    <server-environment>      <project-root>http://wuaki.tv</project-root>      <environment-name>production</environment-name>    </server-environment>  </notice>",
  "format" => "xml"
}

Session

{
}

Backtrace

57:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/fields/serializable/array.rb -> **raise_or_return**
36:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/fields/serializable/array.rb -> **serialize**
173:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/attributes.rb -> **typed_value_for**
96:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/attributes.rb -> **write_attribute**
253:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/fields.rb -> **block (2 levels) in create_accessors**
97:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/attributes/processing.rb -> **process_attribute**
25:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/attributes/processing.rb -> **block in process**
23:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/attributes/processing.rb -> **each_pair**
23:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/attributes/processing.rb -> **process**
130:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/document.rb -> **block in initialize**
47:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/relations/builders.rb -> **building**
127:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/document.rb -> **initialize**
19:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/factory.rb -> **new**
19:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/factory.rb -> **build**
56:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/relations/referenced/many.rb -> **build**
114:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid/relations/referenced/many.rb -> **create!**
45:  [PROJECT_ROOT]/models/notice.rb -> **from_xml**
8:  [PROJECT_ROOT]/controllers/notices_controller.rb -> **create**
4:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal/implicit_render.rb -> **send_action**
150:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/abstract_controller/base.rb -> **process_action**
11:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal/rendering.rb -> **process_action**
18:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/abstract_controller/callbacks.rb -> **block in process_action**
435:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/callbacks.rb -> **_run__1404054578492394589__process_action__1413846483483613545__callbacks**
409:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/callbacks.rb -> **_run_process_action_callbacks**
93:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/callbacks.rb -> **run_callbacks**
17:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/abstract_controller/callbacks.rb -> **process_action**
30:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal/instrumentation.rb -> **block in process_action**
52:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/notifications.rb -> **block in instrument**
21:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb -> **instrument**
52:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/notifications.rb -> **instrument**
29:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal/instrumentation.rb -> **process_action**
17:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal/rescue.rb -> **process_action**
119:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/abstract_controller/base.rb -> **process**
41:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb -> **process**
138:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal.rb -> **dispatch**
14:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal/rack_delegation.rb -> **dispatch**
178:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_controller/metal.rb -> **block in action**
62:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb -> **call**
62:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb -> **dispatch**
27:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb -> **call**
148:  /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb -> **block in call**
93:  /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb -> **block in recognize**
68:  /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb -> **optimized_each**
92:  /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb -> **recognize**
139:  /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb -> **call**
492:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/routing/route_set.rb -> **call**
33:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/rack/mongoid/middleware/identity_map.rb -> **block in call**
130:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/mongoid.rb -> **unit_of_work**
33:  /vendor/bundle/ruby/1.9.1/gems/mongoid-2.1.2/lib/rack/mongoid/middleware/identity_map.rb -> **call**
41:  /vendor/bundle/ruby/1.9.1/gems/haml-3.0.25/lib/sass/plugin/rack.rb -> **call**
35:  /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **block in call**
34:  /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **catch**
34:  /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **call**
17:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/best_standards_support.rb -> **call**
14:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/head.rb -> **call**
24:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/methodoverride.rb -> **call**
21:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/params_parser.rb -> **call**
182:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/flash.rb -> **call**
149:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/session/abstract_store.rb -> **call**
302:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/cookies.rb -> **call**
46:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/callbacks.rb -> **block in call**
415:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/callbacks.rb -> **_run_call_callbacks**
44:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/callbacks.rb -> **call**
107:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/sendfile.rb -> **call**
48:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/remote_ip.rb -> **call**
47:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb -> **call**
13:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails/rack/logger.rb -> **call**
17:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/runtime.rb -> **call**
72:  /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/cache/strategy/local_cache.rb -> **call**
11:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/lock.rb -> **block in call**
:   -> ****
11:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/lock.rb -> **call**
30:  /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/static.rb -> **call**
168:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails[PROJECT_ROOT]lication.rb -> **call**
77:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails[PROJECT_ROOT]lication.rb -> **method_missing**
14:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb -> **call**
13:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/content_length.rb -> **call**
15:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/chunked.rb -> **call**
84:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/connection.rb -> **block in pre_process**
82:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/connection.rb -> **catch**
82:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/connection.rb -> **pre_process**
57:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/connection.rb -> **process**
42:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/connection.rb -> **receive_data**
256:  /vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb -> **run_machine**
256:  /vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb -> **run**
61:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/backends/base.rb -> **start**
159:  /vendor/bundle/ruby/1.9.1/gems/thin-1.2.11/lib/thin/server.rb -> **start**
14:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/handler/thin.rb -> **run**
213:  /vendor/bundle/ruby/1.9.1/gems/rack-1.2.2/lib/rack/server.rb -> **start**
65:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails/commands/server.rb -> **start**
30:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb -> **block in <top (required)>**
27:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb -> **tap**
27:  /vendor/bundle/ruby/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb -> **<top (required)>**
6:  script/rails -> **require**
6:  script/rails -> **<main>**

Environment

SERVER_SOFTWARE: thin 1.2.11 codename Bat-Shit Crazy
SERVER_NAME: wuaki.herokuapp.com
rack.input: #
rack.version: ["1", "0"]
rack.errors: #
rack.multithread: false
rack.multiprocess: false
rack.run_once: false
REQUEST_METHOD: GET
REQUEST_PATH: /notifier_api/v2/notices.xml
PATH_INFO: /notifier_api/v2/notices.xml
QUERY_STRING: data=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%20%20%3Cnotice%20version%3D%222.0%22%3E%20%20%20%20%3Capi-key%3E62316fcc76c9b55b89de6a3a46efeee0%3C/api-key%3E%20%20%20%20%3Cnotifier%3E%20%20%20%20%20%20%3Cname%3Eerrbit_notifier_js%3C/name%3E%20%20%20%20%20%20%3Cversion%3E2.0%3C/version%3E%20%20%20%20%20%20%3Curl%3Ehttps%3A//github.com/jdpace/errbit%3C/url%3E%20%20%20%20%3C/notifier%3E%20%20%20%20%3Cerror%3E%20%20%20%20%20%20%3Cclass%3Esession%3C/class%3E%20%20%20%20%20%20%3Cmessage%3EError%20loading%20script%3C/message%3E%20%20%20%20%20%20%3Cbacktrace%3E%3Cline%20method%3D%22%7Banonymous%7D%28%29%22%20file%3D%22http%3A//d3lvr7yuk4uaui.cloudfront.net/items/domains/w/wuaki.tv.js%22%20number%3D%221%22%20/%3E%3C/backtrace%3E%20%20%20%20%3C/error%3E%20%20%20%20%3Crequest%3E%20%20%20%20%20%20%3Curl%3Ehttp%3A//wuaki.tv/%3Fgclid%3DCKXFjoWO8qoCFZMi3wodgwwHPw%3C/url%3E%20%20%20%20%20%20%3Ccomponent%3Efrontpage%3C/component%3E%20%20%20%20%20%20%3Caction%3Efrontpage%3C/action%3E%20%20%20%20%3Ccgi-data%3E%3Cvar%20key%3D%22HTTP_USER_AGENT%22%3EMozilla/5.0%20%28Windows%3B%20U%3B%20Windows%20NT%205.2%3B%20es-ES%3B%20rv%3A1.9.2.20%29%20Gecko/20110803%20AskTbGOM2/3.12.2.16749%20BTRS5305%20Firefox/3.6.20%3C/var%3E%3C/cgi-data%3E%3C/request%3E%20%20%20%20%3Cserver-environment%3E%20%20%20%20%20%20%3Cproject-root%3Ehttp%3A//wuaki.tv%3C/project-root%3E%20%20%20%20%20%20%3Cenvironment-name%3Eproduction%3C/environment-name%3E%20%20%20%20%3C/server-environment%3E%20%20%3C/notice%3E
REQUEST_URI: /notifier_api/v2/notices.xml?data=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%20%20%3Cnotice%20version%3D%222.0%22%3E%20%20%20%20%3Capi-key%3E62316fcc76c9b55b89de6a3a46efeee0%3C/api-key%3E%20%20%20%20%3Cnotifier%3E%20%20%20%20%20%20%3Cname%3Eerrbit_notifier_js%3C/name%3E%20%20%20%20%20%20%3Cversion%3E2.0%3C/version%3E%20%20%20%20%20%20%3Curl%3Ehttps%3A//github.com/jdpace/errbit%3C/url%3E%20%20%20%20%3C/notifier%3E%20%20%20%20%3Cerror%3E%20%20%20%20%20%20%3Cclass%3Esession%3C/class%3E%20%20%20%20%20%20%3Cmessage%3EError%20loading%20script%3C/message%3E%20%20%20%20%20%20%3Cbacktrace%3E%3Cline%20method%3D%22%7Banonymous%7D%28%29%22%20file%3D%22http%3A//d3lvr7yuk4uaui.cloudfront.net/items/domains/w/wuaki.tv.js%22%20number%3D%221%22%20/%3E%3C/backtrace%3E%20%20%20%20%3C/error%3E%20%20%20%20%3Crequest%3E%20%20%20%20%20%20%3Curl%3Ehttp%3A//wuaki.tv/%3Fgclid%3DCKXFjoWO8qoCFZMi3wodgwwHPw%3C/url%3E%20%20%20%20%20%20%3Ccomponent%3Efrontpage%3C/component%3E%20%20%20%20%20%20%3Caction%3Efrontpage%3C/action%3E%20%20%20%20%3Ccgi-data%3E%3Cvar%20key%3D%22HTTP_USER_AGENT%22%3EMozilla/5.0%20%28Windows%3B%20U%3B%20Windows%20NT%205.2%3B%20es-ES%3B%20rv%3A1.9.2.20%29%20Gecko/20110803%20AskTbGOM2/3.12.2.16749%20BTRS5305%20Firefox/3.6.20%3C/var%3E%3C/cgi-data%3E%3C/request%3E%20%20%20%20%3Cserver-environment%3E%20%20%20%20%20%20%3Cproject-root%3Ehttp%3A//wuaki.tv%3C/project-root%3E%20%20%20%20%20%20%3Cenvironment-name%3Eproduction%3C/environment-name%3E%20%20%20%20%3C/server-environment%3E%20%20%3C/notice%3E
HTTP_VERSION: HTTP/1.1
HTTP_X_FORWARDED_PROTO: http
HTTP_X_FORWARDED_PORT: 80
HTTP_X_FORWARDED_FOR: 88.9.149.233
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.2.20) Gecko/20110803 AskTbGOM2/3.12.2.16749 BTRS5305 Firefox/3.6.20
HTTP_REFERER: http://wuaki.tv/?gclid=CKXFjoWO8qoCFZMi3wodgwwHPw
HTTP_HOST: wuaki.herokuapp.com
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT_LANGUAGE: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_ACCEPT_ENCODING: gzip,deflate
HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_X_HEROKU_QUEUE_WAIT_TIME: 2
HTTP_X_HEROKU_QUEUE_DEPTH: 0
HTTP_X_HEROKU_DYNOS_IN_USE: 1
HTTP_X_REQUEST_START: 1314538642135
GATEWAY_INTERFACE: CGI/1.2
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
rack.url_scheme: http
key: action_dispatch.request.request_parameters
REMOTE_ADDR: 10.78.17.188
async.callback: #
async.close: #
action_dispatch.parameter_filter: ["password"]
action_dispatch.secret_token: 6b74778101638fa9c156b3928c9492fb2481ab842538bea838d21f9c9993f649f5806449584266d413d0b2f1104162b3066a86512ed71ededd627cd41f939614
action_dispatch.remote_ip: 88.9.149.233
rack.session.options: {"path"=>"/", "key"=>"id", "secure"=>"false", "httponly"=>"true"}
warden: Warden::Proxy:40509420 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:rememberable, :token_authenticatable, :database_authenticatable]}, :intercept_401=>false, :failure_app=>Devise::FailureApp}
action_dispatch.request.path_parameters: {"controller"=>"notices", "action"=>"create", "format"=>"xml"}
action_controller.instance: #
rack.request.query_string: data=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%20%20%3Cnotice%20version%3D%222.0%22%3E%20%20%20%20%3Capi-key%3E62316fcc76c9b55b89de6a3a46efeee0%3C/api-key%3E%20%20%20%20%3Cnotifier%3E%20%20%20%20%20%20%3Cname%3Eerrbit_notifier_js%3C/name%3E%20%20%20%20%20%20%3Cversion%3E2.0%3C/version%3E%20%20%20%20%20%20%3Curl%3Ehttps%3A//github.com/jdpace/errbit%3C/url%3E%20%20%20%20%3C/notifier%3E%20%20%20%20%3Cerror%3E%20%20%20%20%20%20%3Cclass%3Esession%3C/class%3E%20%20%20%20%20%20%3Cmessage%3EError%20loading%20script%3C/message%3E%20%20%20%20%20%20%3Cbacktrace%3E%3Cline%20method%3D%22%7Banonymous%7D%28%29%22%20file%3D%22http%3A//d3lvr7yuk4uaui.cloudfront.net/items/domains/w/wuaki.tv.js%22%20number%3D%221%22%20/%3E%3C/backtrace%3E%20%20%20%20%3C/error%3E%20%20%20%20%3Crequest%3E%20%20%20%20%20%20%3Curl%3Ehttp%3A//wuaki.tv/%3Fgclid%3DCKXFjoWO8qoCFZMi3wodgwwHPw%3C/url%3E%20%20%20%20%20%20%3Ccomponent%3Efrontpage%3C/component%3E%20%20%20%20%20%20%3Caction%3Efrontpage%3C/action%3E%20%20%20%20%3Ccgi-data%3E%3Cvar%20key%3D%22HTTP_USER_AGENT%22%3EMozilla/5.0%20%28Windows%3B%20U%3B%20Windows%20NT%205.2%3B%20es-ES%3B%20rv%3A1.9.2.20%29%20Gecko/20110803%20AskTbGOM2/3.12.2.16749%20BTRS5305%20Firefox/3.6.20%3C/var%3E%3C/cgi-data%3E%3C/request%3E%20%20%20%20%3Cserver-environment%3E%20%20%20%20%20%20%3Cproject-root%3Ehttp%3A//wuaki.tv%3C/project-root%3E%20%20%20%20%20%20%3Cenvironment-name%3Eproduction%3C/environment-name%3E%20%20%20%20%3C/server-environment%3E%20%20%3C/notice%3E
rack.request.query_hash: {"data"=>" 62316fcc76c9b55b89de6a3a46efeee0 errbit_notifier_js 2.0 https://github.com/jdpace/errbit session Error loading script http://wuaki.tv/?gclid=CKXFjoWO8qoCFZMi3wodgwwHPw frontpage frontpage Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.2.20) Gecko/20110803 AskTbGOM2/3.12.2.16749 BTRS5305 Firefox/3.6.20 http://wuaki.tv production "}
action_dispatch.request.query_parameters: {"data"=>" 62316fcc76c9b55b89de6a3a46efeee0 errbit_notifier_js 2.0 https://github.com/jdpace/errbit session Error loading script http://wuaki.tv/?gclid=CKXFjoWO8qoCFZMi3wodgwwHPw frontpage frontpage Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.2.20) Gecko/20110803 AskTbGOM2/3.12.2.16749 BTRS5305 Firefox/3.6.20 http://wuaki.tv production "}
action_dispatch.request.parameters: {"data"=>" 62316fcc76c9b55b89de6a3a46efeee0 errbit_notifier_js 2.0 https://github.com/jdpace/errbit session Error loading script http://wuaki.tv/?gclid=CKXFjoWO8qoCFZMi3wodgwwHPw frontpage frontpage Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.2.20) Gecko/20110803 AskTbGOM2/3.12.2.16749 BTRS5305 Firefox/3.6.20 http://wuaki.tv production ", "controller"=>"notices", "action"=>"create", "format"=>"xml"}
action_dispatch.request.formats: ["application/xml"]
@ndbroadbent
Copy link
Member Author

The problem is with notifier.js not sending the backtrace as an array.

@espen
Copy link
Contributor

espen commented Feb 15, 2012

I'm getting this problem on Heroku when doing GET /apps/new. app/controllers/apps_controller.rb:42:in `new'.

@ndbroadbent
Copy link
Member Author

I cannot reproduce this, sorry. If you have updated recently, you may need to run heroku run rake db:migrate

@espen
Copy link
Contributor

espen commented Feb 15, 2012

Hmmm. This is weird. I already did, but here goes again (and again).

➜ errbit git:(master) heroku run rake db:migrate
Running rake db:migrate attached to terminal... up, run.1

Mongoid config not found. Create a config file at: config/mongoid.yml
to generate one run: rails generate mongoid:config

Migrating to MoveNoticesToSeparateCollection (20110422152027)
Migrating to MoveIssueTrackersToSti (20110812135951)
Migrating to LinkErrsToProblems (20110905134638)
Migrating to AddProblemCommentsCount (20111019163257)
Migrating to CacheProblemStatisticsFix (20111102173347)
➜ errbit git:(master) heroku run rake db:migrate
Running rake db:migrate attached to terminal... up, run.1

Mongoid config not found. Create a config file at: config/mongoid.yml
to generate one run: rails generate mongoid:config

Migrating to MoveNoticesToSeparateCollection (20110422152027)
Migrating to MoveIssueTrackersToSti (20110812135951)
Migrating to LinkErrsToProblems (20110905134638)
Migrating to AddProblemCommentsCount (20111019163257)
Migrating to CacheProblemStatisticsFix (20111102173347)

Regarding the mongoid config error, I assumed that was not required on heroku?

@ndbroadbent
Copy link
Member Author

Hmm. I think something changed on Heroku, in the last few months. I've added an example MongoHQ config, and instructions to the README. Please update, then run the following commands to set up the config file, and then push to heroku and try again. Hope that helps

cp -f config/mongoid.mongohq.yml config/mongoid.yml
git add -f config/mongoid.yml
git commit -m "Added mongoid config for MongoHQ"

@espen
Copy link
Contributor

espen commented Feb 15, 2012

Thanks for that. This removes the warning. But I still get the same error. Also migrations are always executed as per example above. I have never used MongoDB before. Is this the way migrations are done on MongoDB?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants