-
Notifications
You must be signed in to change notification settings - Fork 186
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
Missing constant error in puma #333
Comments
I think this is the PR on their side that resolved the issue: rack/rack-attack#314 |
Also, FWIW this does not seem to happen on 1.5.3. It only started happening on the latest version (1.9) |
Can you tell me a little bit more about your setup so i can repro it? |
MRI ruby 2.5.3p105 @gaorlov Do you need any other info? |
Can you give a bit more details on how you're booting the server or if you have init configs that reference json api client? I cannot seem to repro a vanilla puma app with the 1.9.0 client in dev or production modes. |
Looks like the only configs we specify are thread count and port, so we're using defaults for workers, preloading, etc. Upon retesting it, it looks like the problem only manifests when a |
@travisofthenorth Also got this proplem. # Require this cause got an error while fetch it from cache
# NameError: uninitialized constant JsonApiClient::UnderscoredKeyFormatter
require 'json_api_client'
JsonApiClient::Resource.new |
I just hit this. I don't think it has anything to do with being thread-safe or not. In a brand new rails app with the
If I then do Given a class hierarchy that looks like
is the expected behavior of directly accessing |
Getting this error intermittently in a threaded puma server:
Internal Server Error: uninitialized constant JsonApiClient::DasherizedKeyFormatter
I am guessing that the issue here is similar to rack/rack-attack#229, i.e. the use of
autoload
in the gem isn't thread-safe and is ultimately the cause of the exception.Any particular reason the gem uses autoloading instead of just requiring related files? Can that be changed safely/easily?
The text was updated successfully, but these errors were encountered: