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 · 5 comments
Open

EasyPost no method api_key #108

embold-tyler opened this issue Sep 5, 2023 · 5 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

@fthobe
Copy link

fthobe commented Dec 5, 2024

@embold-tyler hey, have you fixed it?

@embold-tyler
Copy link
Author

sorry, I haven't had a chance yet. had a few things come up.

@fthobe
Copy link

fthobe commented Dec 6, 2024

@embold-tyler would you be up for fixing it?

@luna-lightblade
Copy link

I have a branch I'm testing with a fix for this here: https://github.com/luna-lightblade/solidus_easypost/commits/easypost-5.0/

The core issue is breaking changes in the underlying easypost 5.0 gem which isn't version pinned as a dependency in this project.

@fthobe
Copy link

fthobe commented Jan 3, 2025

Hey @luna-lightblade
Thank you so much, so basically replacing the underlying library made this work?

We are in the process of fixing a lot of smaller issues around other extensions as well (we just made social_auth work) and are in the process to make solidus a little SEO friendlier. Is there anything you work on in particular apart of easypost and would you care about making a PR for the easypost extension as we did for social and starter frontend bugfixes? The community lives through contributors :)

@rahulsingh321

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

3 participants