Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension calling AirTable API Unauthorized error #460

Open
mvadher opened this issue Nov 13, 2024 · 3 comments
Open

Extension calling AirTable API Unauthorized error #460

mvadher opened this issue Nov 13, 2024 · 3 comments

Comments

@mvadher
Copy link

mvadher commented Nov 13, 2024

Header I am using autorization Bearer YOUR_API_TOKEN

get : link to Airtbale URL/baseid/tableid

function Jason I got from Airtable.

This works fine in Postman but in Azurechat extention it keeps saying unautorized.

Any suggestions?

@DakotaWray2
Copy link

See my issue #455
If your extension uses an authorization header with PAT you will likely need to change the built in way userId is added to the extension definition.

@oliviermeijer
Copy link

In chat-api-dynamic-extensions.ts Change add userID header to this:

    if (!headerItems.some((header) => header.key.toLowerCase() === "authorization")) {
      headerItems.push({
        id: "authorization",
        key: "authorization",
        value: await userHashedId(),
      });
    }

@mvadher
Copy link
Author

mvadher commented Nov 26, 2024

It worked, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants