Open Permafacture opened 2 months ago
Hi there! I believe the issue is that the server
param will take precedence over server_url
, so the 401 here is the response from our hosted free api. Please give this a try:
client = unstructured_client.UnstructuredClient(
server_url="http://localhost:8000",
)
Describe the bug Trying to use a local hosted server from the docker container and accessing with the python api. I get a 401 error API key is missing, please provide an API key in the header". This is the same as #407 except the solution there didn't fix it for me.
To Reproduce Ubuntu 20.04 docker pull downloads.unstructured.io/unstructured-io/unstructured-api:latest docker run -p 8000:8000 -d --rm --name unstructured-api downloads.unstructured.io/unstructured-io/unstructured-api:latest
then in python: