Problem/Motivation
The default value for the "Unstructured API Host" value (https://api.unstructured.io) on /admin/config/unstructured/settings didn't work for me. From the Drupal log:
A general error happened why trying to interpolate, message Client error: `POST https://api.unstructured.io/general/v0/general` resulted in a `401 Unauthorized` response: {"detail":"API key is invalid, please provide a valid API key in the header."}
On my Unstructured.io dashboard (https://app.unstructured.io/keys), the API URL is specified as "https://api.unstructuredapp.io/general/v0/general". Once I updated /admin/config/unstructured/settings to this, things worked for me.
Not sure if this is due to the way I set up my Unstructured account (I'm using the free, 14-day trial currently) or something has changed on the Unstructured side of things...
-mike
Issue fork unstructured-3471274
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
marcus_johansson commentedComment #3
jduff commentedI'm using the free 14 day trial as well and changing the Unstructured API Host from https://api.unstructured.io to https://api.unstructuredapp.io fixed this for me.
Comment #6
scott_euser commentedSome validation and extra instructions to help make it easier to get this right. See also #3500612: Add a readme
Comment #7
scott_euser commentedI cannot find any mention any more of https://api.unstructured.io, only https://api.unstructuredapp.io, so maybe they deprecated or redirected for example. Updated field descriptions & defaults + added helptext about how to use for the ddev contrib unstructured add-on as well into there. Thanks!