-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
undefined method 'implementation' for HTTP::CookieJar::AbstractStore:Class #6
Comments
I have received this error also, randomly. |
I have also been seeing this appearing on Sentry. Unsure of what is triggering it. |
I saw this in the logs again now. My suspicion is something related to bafb83f. We apparently auto-load these files, and in my case, the gem is being used from multiple threads concurrently - it could be a glitch in the gem or MRI related to the auto-loading. @knu - would it be OK with you to skip the autoloading and require the abstract_store unconditionally instead? If so, I'll gladly submit a patch to hopefully solve this issue. |
We still see this issue today, in |
@JasonLunn Not that I know of. I suspect that loading files late (when they are needed) have race conditions. So loading everything at once, on startup, could work - if you find a working strategy, please post the suggestions here so we can apply it (and hopefully submit a PR to the gem for it to get fixed properly). |
seeing the same ... updating to latest in hope that fixes anything ... was running the same app for months and after a restart this popped up ... |
The project seems unfortunately quite abandoned at the moment. 😢 No new commits since December, and 5 open pull requests. Do we have anyone with time and energy to fork it and maintain it? Or better yet, contact the original author (@sparklemotion) to be added as a maintainer here? |
I'm dealing with mechanize and its source code just told me I should use this library ..\ |
eager load helps, ran this for 1 month and no more issues: # eager load http-cookie gem to avoid random error
# https://github.com/sparklemotion/http-cookie/issues/6
cookie = $LOAD_PATH.detect { |l| l.match?(/\/http-cookie-\d/) }
Dir["#{cookie}/**/*.rb"].grep_v(/mozilla_store/).sort.each { |f| require f.sub("#{cookie}/", "").sub(".rb", "") } |
I'm not sure it's related, but I found a similar bug in the |
I concur that eagerly loading it will fix the problem. I had workaround almost 4 years ago and it never happened again:
|
@jordan-thoms You might be interested about working around this problem in http-client. I found just |
I found the following error in my heroku logfiles:
Unfortunately I did not log the uri that was queried by my rake task, and the problem did not occur in the following hours. I still hope it's enough info to find the culprit.
The text was updated successfully, but these errors were encountered: