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

config_check crashes with NoMethodError #91

Closed
honzasterba opened this issue Jan 25, 2024 · 3 comments · Fixed by #93
Closed

config_check crashes with NoMethodError #91

honzasterba opened this issue Jan 25, 2024 · 3 comments · Fixed by #93
Labels
bug Something isn't working

Comments

@honzasterba
Copy link
Contributor

Hi,

running via docker :latest and basic pg_easy_replicate config_check

/usr/local/bundle/gems/pg_easy_replicate-0.2.2/lib/pg_easy_replicate.rb:106:in assert_config: undefined method split' for nil:NilClass (NoMethodError)
if tables.split(",").size > 0 && (schema_name.nil? || schema_name == "")
^^^^^^
from /usr/local/bundle/gems/pg_easy_replicate-0.2.2/lib/pg_easy_replicate/cli.rb:28:in `config_check'
@shayonj
Copy link
Owner

shayonj commented Jan 25, 2024

oof! terrible bug. Will fix it this weekend. Thanks for the report

@shayonj shayonj added the bug Something isn't working label Jan 25, 2024
@honzasterba
Copy link
Contributor Author

workaround is to run with --tables ""

@shayonj
Copy link
Owner

shayonj commented Jan 28, 2024

https://github.com/shayonj/pg_easy_replicate/releases/tag/v0.2.3

Is now out with the changes. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants