aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
89 stars 79 forks source link

ValidationException on AI Data Extraction (Generation) #3054

Closed hlhc closed 1 day ago

hlhc commented 3 days ago

Environment information

System:
  OS: macOS 15.0
  CPU: (10) arm64 Apple M1 Pro
  Memory: 133.81 MB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.14.0 - ~/.local/state/fnm_multishells/35173_1732740040993/bin/node
  Yarn: 1.22.22 - ~/.local/state/fnm_multishells/35173_1732740040993/bin/yarn
  npm: 10.7.0 - ~/.local/state/fnm_multishells/35173_1732740040993/bin/npm
  pnpm: 9.11.0 - ~/.local/state/fnm_multishells/35173_1732740040993/bin/pnpm
NPM Packages:
  @aws-amplify/auth-construct: Not Found
  @aws-amplify/backend: 1.8.0
  @aws-amplify/backend-auth: Not Found
  @aws-amplify/backend-cli: 1.4.2
  @aws-amplify/backend-data: Not Found
  @aws-amplify/backend-deployer: Not Found
  @aws-amplify/backend-function: Not Found
  @aws-amplify/backend-output-schemas: Not Found
  @aws-amplify/backend-output-storage: Not Found
  @aws-amplify/backend-secret: Not Found
  @aws-amplify/backend-storage: Not Found
  @aws-amplify/cli-core: Not Found
  @aws-amplify/client-config: Not Found
  @aws-amplify/deployed-backend-client: Not Found
  @aws-amplify/form-generator: Not Found
  @aws-amplify/model-generator: Not Found
  @aws-amplify/platform-core: Not Found
  @aws-amplify/plugin-types: Not Found
  @aws-amplify/sandbox: Not Found
  @aws-amplify/schema-generator: Not Found
  aws-amplify: 6.10.0
  aws-cdk: 2.171.0
  aws-cdk-lib: 2.171.0
  typescript: 5.7.2
AWS environment variables:
  AWS_PROFILE = [redacted]
  AWS_REGION = us-east-1
No CDK environment variables

Describe the bug

Following the Documentation to do data extraction, but returning ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/.

{
    "data": {
        "extractProductDetails": null
    },
    "errors": [
        {
            "path": [
                "extractProductDetails"
            ],
            "data": null,
            "errorType": "ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/",
            "errorInfo": null,
            "locations": [
                {
                    "line": 2,
                    "column": 3,
                    "sourceName": null
                }
            ],
            "message": "A custom error was thrown from a mapping template."
        }
    ]
}

Reproduction steps

  1. Add Auth to the Next.js template
  2. Following the Documentation to integrate data extraction
ykethan commented 3 days ago

Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂

github-actions[bot] commented 1 day ago

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.