1 year ago
#346782
Maha Khalid
Rails applications gives 400 error when request is sent to an end point giving "Reloading does not reboot the application"
Application is using datadog, initially it was giving 404 not found although in logs I could see that it was giving Datadog tracer configuration, failed to establish TCP connection to 127.0.0.1:8126 ,Datadog::Transport::InternalRrrorResponse. Please not the application is connected to test database and I am using docker.
Since I did not need datadog locally, I commented that out and rebuild it and started container again but then it was not giving datadog error but the error mentioned below
reloading does not reboot the application, and therefore code executed during initialization does not run again. sp if you reload logger for example the expected changes wont be reflected int hat stale class object config.autoloader
is set to classic
. These autoload constant would have been unloaded if config.autoloader
had been set to :zeitwerk
Please, check the "Autoloading and Reloading Constants" guide for solutions.
Any help would be highly appreciated, I am using postman to send a simple GET request on an end point that is intended for mobile apps.
ruby-on-rails
port
autoload
datadog
0 Answers
Your Answer