Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upNameError: uninitialized constant Aws::Client::Errors #1298
Comments
awood45
added
the
Version 2
label
Sep 20, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
awood45
Sep 20, 2016
Member
Thanks for the investigation here - will dive in to this.
I suspect that your guess around thread safety is the right one. In which case, calling Aws.eager_autoload! (which accepts individual services as parameters if you do not want to autoload the entire SDK) should fix the symptoms.
If you try this workaround and continue to see this error, please do let me know.
|
Thanks for the investigation here - will dive in to this. I suspect that your guess around thread safety is the right one. In which case, calling If you try this workaround and continue to see this error, please do let me know. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pmorton
Sep 20, 2016
Hey - We did the work around many months ago by adding Aws.eager_autoload! as a rails initializer. Unfortunately the issue persists.
pmorton
commented
Sep 20, 2016
•
|
Hey - We did the work around many months ago by adding |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pmorton
commented
Sep 21, 2016
|
@awood45 look like this is a Jruby bug. :( jruby/jruby#3920 |
awood45
added
the
third-party
label
Sep 21, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Interesting - thanks for spotting that! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
trevorrowe
Nov 17, 2016
Member
I'm going to close this issue, as it is currently non-actionable by the SDK. That said, we will be pushing out a preview release shortly of the SDK where the services are modularized into individual gems. With this refactor, we have removed the use of Ruby's autoload which should also side-step this issue entirely.
|
I'm going to close this issue, as it is currently non-actionable by the SDK. That said, we will be pushing out a preview release shortly of the SDK where the services are modularized into individual gems. With this refactor, we have removed the use of Ruby's autoload which should also side-step this issue entirely. |
pmorton commentedSep 20, 2016
Hi All - I am trying to diagnse what seems to be a very hairy error. At verying intervals, our application will trap an exception to our error service. The exception is
NameError: uninitialized constant Aws::Client::Errors. The partial stack trace can be found here https://gist.github.com/pmorton/c229ef2506d7328efacd0ca0750f702b.kinesis_base.rb:49callsclient.put_recordwith the required arguments to put a record to kinesis. Note that this call is run on a different thread than the main application logic. The vast majority of the calls succeed, but at intermittent intervals we received these exceptions.This happens on our app the runs jruby-1.7.19, however other applications that run MRI doe not seem to exhibit this same behavior.
What I know so far:
My theory, which I cannot seem to easily prove, is that when https://github.com/aws/aws-sdk-ruby/blob/master/aws-sdk-core/lib/aws-sdk-core/xml/error_handler.rb#L24 is executed the client class name is actually being reported as 'Seahorse::Client' which would explain when the error handler is trying root the errors in Client.
Some random thoughts about where the problem might be: