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

Command icon 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

ultimike created an issue. See original summary.

marcus_johansson’s picture

Assigned: Unassigned » marcus_johansson
jduff’s picture

I'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.

scott_euser made their first commit to this issue’s fork.

scott_euser’s picture

Status: Active » Needs review

Some validation and extra instructions to help make it easier to get this right. See also #3500612: Add a readme

scott_euser’s picture

Assigned: marcus_johansson » Unassigned
Status: Needs review » Fixed

I 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.