-
Notifications
You must be signed in to change notification settings - Fork 999
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
Comments
The problem is with notifier.js not sending the backtrace as an array. |
I'm getting this problem on Heroku when doing GET /apps/new. app/controllers/apps_controller.rb:42:in `new'. |
I cannot reproduce this, sorry. If you have updated recently, you may need to run |
Hmmm. This is weird. I already did, but here goes again (and again). ➜ errbit git:(master) heroku run rake db:migrate Mongoid config not found. Create a config file at: config/mongoid.yml Migrating to MoveNoticesToSeparateCollection (20110422152027) Mongoid config not found. Create a config file at: config/mongoid.yml Migrating to MoveNoticesToSeparateCollection (20110422152027) Regarding the mongoid config error, I assumed that was not required on heroku? |
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
|
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? |
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
Session
Backtrace
Environment
The text was updated successfully, but these errors were encountered: