Skip to content

fatal error: 'aws/bedrock-runtime/model/InternalServerException.h' file not found #3389

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

Closed
1 task
Chen188 opened this issue Apr 23, 2025 · 3 comments
Closed
1 task
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@Chen188
Copy link

Chen188 commented Apr 23, 2025

Describe the bug

Failed to compile BedrockRuntime ConverseStream sample code. Looks like the CPP SDK lakes of InternalServerException.h file, which is included in aws/bedrock-runtime/model/ConverseStreamOutput.h.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Fix the error: 'aws/bedrock-runtime/model/InternalServerException.h' file not found

Current Behavior

% cmake .
-- Found AWS SDK for C++, Version: 1.11.552, Install Root:/usr/local, Platform Prefix:, Platform Dependent Libraries: pthread;curl
-- Components specified for AWSSDK: bedrock-runtime;core, application will be depending on libs: aws-cpp-sdk-bedrock-runtime;aws-cpp-sdk-core
-- Try finding aws-cpp-sdk-core
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found aws-cpp-sdk-core
-- Try finding aws-cpp-sdk-bedrock-runtime
-- Found aws-cpp-sdk-bedrock-runtime
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/xx/test-cpp-sdk-bedrock/build
% make

[ 50%] Building CXX object CMakeFiles/converse_stream_sample.dir/converse_stream_sample.cpp.o
In file included from /Users/xx/test-cpp-sdk-bedrock/converse_stream_sample.cpp:4:
/usr/local/include/aws/bedrock-runtime/model/ConverseStreamOutput.h:14:10: fatal error: 'aws/bedrock-runtime/model/InternalServerException.h' file not found
   14 | #include <aws/bedrock-runtime/model/InternalServerException.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/converse_stream_sample.dir/converse_stream_sample.cpp.o] Error 1
make[1]: *** [CMakeFiles/converse_stream_sample.dir/all] Error 2
make: *** [all] Error 2

Reproduction Steps

  • build and install the latest aws cpp sdk
  • sample code:
    #include <iostream>
    #include <aws/core/Aws.h>
    #include <aws/bedrock-runtime/BedrockRuntimeClient.h>
    #include <aws/bedrock-runtime/model/ConverseStreamRequest.h>
    #include <aws/bedrock-runtime/model/ConverseStreamOutput.h>
    
    using namespace Aws::BedrockRuntime;
    using namespace Aws::BedrockRuntime::Model;
    
    int main() {
        std::cout << "hello world" << std::endl;
    }

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### AWS CPP SDK version used

1.11.552

### Compiler and Version used

Apple clang version 17.0.0 (clang-1700.0.13.3) / VS Version: 1.99.3 (Universal)

### Operating System and version

macOS 15.4
@Chen188 Chen188 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 23, 2025
@SergeyRyabinin
Copy link
Contributor

Hello,

Thank you for submitting this issue.
I have submitted a fix #3390 for this issue and will follow-up with a test for this class of code generation errors.

In the meantime,
Please note that at the current moment, ConverseStreamOutput shape is not used within the model tree of that AWS service client.
Please refer to our dummy test for this client that is build-able at the moment: https://github.com/aws/aws-sdk-cpp/blob/main/tests/aws-cpp-sdk-bedrock-runtime-integration-tests/IntegrationTests.cpp#L70

Best regards,
Sergey

@sbiscigl
Copy link
Contributor

closing issue, fix is released

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants