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

ActiveRecord connector error [MakaraMysql2RgeoAdapter] #363

Open
saurabhlime opened this issue Aug 19, 2024 · 2 comments
Open

ActiveRecord connector error [MakaraMysql2RgeoAdapter] #363

saurabhlime opened this issue Aug 19, 2024 · 2 comments

Comments

@saurabhlime
Copy link

saurabhlime commented Aug 19, 2024

I was installing the gem in our project and got an error regarding a connector that we use "MakaraMysql2RgeoAdapter"
AppMap encountered an error inspecting a ActiveRecord::ConnectionAdapters::MakaraMysql2RgeoAdapter: undefined method `provide' for nil:NilClass
Sequel::Error (No database associated with Sequel::Model: have you called Sequel.connect or Sequel::Model.db= ?)

This error was thrown on a POSTMAN request of an endpoint. It works for certain Rspec test cases and does not for others.

Ruby: ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [arm64-darwin21]
Rails: Rails 6.1.7.6

Started` GET "/api/rider/v1/login?phone=4085550001&platform=Android" for ::1 at 2024-08-17 22:33:21 -0600
AppMap encountered an error inspecting a ActiveRecord::ConnectionAdapters::MakaraMysql2RgeoAdapter: undefined method `provide' for nil:NilClass
  
Sequel::Error (No database associated with Sequel::Model: have you called Sequel.connect or Sequel::Model.db= ?):
  
lib/active_record/connection_adapters/makara_mysql2rgeo_adapter.rb:78:in `active_record_connection_for'
lib/active_record/connection_adapters/makara_mysql2rgeo_adapter.rb:8:in `new'
lib/active_record/connection_adapters/makara_mysql2rgeo_adapter.rb:8:in `makara_mysql2rgeo_connection'
app/middleware/load_shedding_middleware.rb:11:in `call'
Started GET "/api/rider/v1/login?phone=4085550001&platform=Android" for ::1 at 2024-08-17 22:34:44 -0600

AppMap encountered an error inspecting a ActiveRecord::ConnectionAdapters::MakaraMysql2RgeoAdapter: undefined method `provide' for nil:NilClass
  
Sequel::Error (No database associated with Sequel::Model: have you called Sequel.connect or Sequel::Model.db= ?):
  
lib/active_record/connection_adapters/makara_mysql2rgeo_adapter.rb:78:in `active_record_connection_for'
lib/active_record/connection_adapters/makara_mysql2rgeo_adapter.rb:8:in `new'
lib/active_record/connection_adapters/makara_mysql2rgeo_adapter.rb:8:in `makara_mysql2rgeo_connection'
app/middleware/load_shedding_middleware.rb:11:in `call'''
@kgilpin
Copy link
Contributor

kgilpin commented Aug 19, 2024

Do you have a stack trace with file paths and line numbers?

@saurabhlime
Copy link
Author

Updated in the description

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