Skip to content

Missing constant error in puma #333

@travisofthenorth

Description

@travisofthenorth

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions