You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Lambda function deployed with Chalice that is triggered by an SQS queue event. After refactoring my code to move the function from the main app.py file to a module and registering the module via a blueprint, I started receiving the following error:
from chalice import Blueprint
api = Blueprint(__name__)
@api.on_sqs_message(
queue='queue_name',
batch_size=1
)
def any_handler(event):
# Function logic here
app.py:
from chalice import Chalice
from chalicelib.api import api, handle_http_errors
app = Chalice(app_name='app_name')
app.api.binary_types = ['application/x-protobuf']
app.register_blueprint(api)
app.register_middleware(handle_http_errors, 'http')
Chalice version: 1.31.0
The text was updated successfully, but these errors were encountered:
I have a Lambda function deployed with Chalice that is triggered by an SQS queue event. After refactoring my code to move the function from the main app.py file to a module and registering the module via a blueprint, I started receiving the following error:
api.py
app.py:
Chalice version: 1.31.0
The text was updated successfully, but these errors were encountered: