Skip to content
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

Magnum adapter issue in the lambda functions #5

Open
existme opened this issue Jun 21, 2023 · 0 comments
Open

Magnum adapter issue in the lambda functions #5

existme opened this issue Jun 21, 2023 · 0 comments

Comments

@existme
Copy link

existme commented Jun 21, 2023

Hi,

When I try to call the lambda function deployed by the stack (as explained in the readme)

curl -X POST "https://replace-with-your-api-gw-url/prod/api/v1/llm/rag" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{\"q\":\"Which versions of XGBoost does SageMaker support?\"}"

I always get a 500 with the following log lines in the cloud watch:

{
  "errorMessage": "'requestContext'",
  "errorType": "KeyError",
  "requestId": "889fc5a4-07df-40f1-9c69-3725cca2046e",
  "stackTrace": [
    "  File \"/var/task/mangum/adapter.py\", line 110, in __call__\n    return self.handler(event, context)\n",
    "  File \"/var/task/mangum/adapter.py\", line 130, in handler\n    if \"eventType\" in event[\"requestContext\"]:\n"
  ]
}

It's pointed out here that it can be related to the magnum adapter. Can this be fixed in the repo?

Thanks in advance.
/Reza

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant