Skip to content

Fix issue with latest version of FastAPI #1022

@davidmezzetti

Description

@davidmezzetti

Receiving this error:

  File "/home/runner/work/txtai/txtai/src/python/txtai/api/route.py", line 29, in handler
    response_field=self.secure_cloned_response_field,
AttributeError: 'EncodingAPIRoute' object has no attribute 'secure_cloned_response_field'

This attribute was removed in a recent version of FastAPI. Add a fix to handle this change.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions