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

EasyPost no method api_key #108

Open
embold-tyler opened this issue Sep 5, 2023 · 0 comments
Open

EasyPost no method api_key #108

embold-tyler opened this issue Sep 5, 2023 · 0 comments

Comments

@embold-tyler
Copy link

embold-tyler commented Sep 5, 2023

After updating the gem, a new error prevents the site from starting if the initializer has EasyPost.api_key = and returns undefined method 'api_key=' for EasyPost:Module (NoMethodError)

EasyPost changed the way the client object is instantiated, so it no longer takes a global api_key but instead accepts the api_key when creating a new Client object per instructions here: https://github.com/EasyPost/easypost-ruby/blob/86b2575006f6fd3703b370cc00d72c3bb5b9d724/UPGRADE_GUIDE.md?plain=1#L28

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

1 participant