简体   繁体   中英

wrong number of arguments (given 0, expected 1) after deployment JROR

Ror Experts,

I am having some kind of routing issue (I think so..). The Ahoy tracks visits and events in the development environment - running under webbrick server. When the application is deployed using warbler and published to apache tomcat server, it throws 500 error, Wrong number of Arguments (given 0, expected 1) while trying to log events. Tracking visits works as expected.

I have already tried suggestions mentioned in ahoy github account ( https://github.com/ankane/ahoy/issues/356 ) without success.

I tried to debug if the data from react code is sending data as expected. It is indeed sending the data. I tried to post the data using postman directly to the controller using the same load to both development and deployed environment. It works on development but not on deployed.

I also tried to check error logs on the server. There is no information except 500 error.

Can someone help me out...

PS:

Prod server: Apache Tomcat

Environment: Jruby on rails

Front End: React

Found a solution. Fixed using gem as integral part of application instead of gem...... Still doesn't know what caused the issue. My gut feeling is some kind of routing issue with jruby and bundler warbler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM