Closed stephenkilbourn closed 2 months ago
@vincentsarago are you able to help us with this PR? I think it's stumped all of Data Services so far 😬
We're mainly seeing a get_connection
error when trying POST using the transactions endpoints in stacfastapi-pgstac.
../../../../../.pyenv/versions/veda-backend/lib/python3.11/site-packages/stac_fastapi/pgstac/transactions.py:93: in create_item
async with request.app.state.get_connection(request, "w") as conn:
Maybe it has something to do with how we're importing the app in our tests.
I deployed this to https://8ajdmuk7ld.execute-api.us-west-2.amazonaws.com/docs and tested the CREATE, PUT and POST transaction endpoints, and the validation is working.
I've added a small change in the
stac_api/runtime/tests/conftest.py
. This gives a similar error on each of the attempts to POST: The error error:this got past the starlette error that we were seeing in develop:
I'm at a loss on how to get past the new post error, though.
stephenkilbourn