Jun 28, 2020 07:33 PM
when i create records,got a reeor about Authentication,the message is:{“error”:{“type”:“AUTHENTICATION_REQUIRED”,“message”:“Authentication required”}}
this is my code and data:
url = “https://api.airtable.com/v0/appjiuXPDkRCdDkhs/Pipeline”
h = {
“Authorization”:“keyE5yxxxxxxxxgb0x3”,
“Content-Type”:“application/json”
}
data_list = {“records”: [{“fields”: {“Name”: “a”, “Priority”: 3}}]}
print(requests.post(url,data=json.dumps(data_list),headers=h).text)
Jan 20, 2022 04:06 PM
It looks like you are missing the word Bearer
Jan 21, 2022 06:08 AM
Good catch, though in this case I had just forgotten that when typing out the question, I actually do have the Bearer
included in Shortcuts and the other places mentioned.
I have narrowed it down to an issue not related to Airtable (so feel free to skip reading if you’re not familiar with Shortcuts):
I have several shortcuts (think of them as scripts) that run another shortcut inside to pull in a dictionary object containing some variables like the API key, and then the main shortcut plops that into the Authorization
header for the API call. But there appears to be a bug in the iOS version of Shortcuts right now that is making it impossible to pass variables from an inner shortcut to the outer shortcut that just ran it.
For example I can show this pair of test shortcuts doesn’t pass the dictionary value correctly:
I’ll be making a support request to Apple to fix their bug,
Aug 01, 2022 06:41 PM
i am trying to retrieve a base from my airtable in Node.js
using
const fetchCourses = () => fetch(“https://api.airtable.com/v0/app...../Products”);
and this is the error i am getting
{“error”:{“type”:“AUTHENTICATION_REQUIRED”,“message”:“Authentication required”}}
Mar 05, 2023 03:16 PM
Were you able to figure it out - currently trying to set up a Shortcut on iOS. Getting the same error.