Skip to main content
Solved

"block release" fails with "block could not be found" message


Forum|alt.badge.img+2

Hi!
I follow Hello World tutorial step by step
All works fine except the releasing step:

>block release
Bundling... done
Uploading... Incomplete
Error: ❌ The block could not be found. Make sure your API key is correct and that you have access to the block.
Code: airtableApiBlockNotFound

What could be the reason of the issue and how can I fix this?
Thanks!

Best answer by Stephen_Orr1

As a first step, you might ensure your blocks-cli version is the latest as the switch from API keys to personal access tokens was made recently.
More info on the change here: https://support.airtable.com/docs/creating-and-using-api-keys-and-access-tokens

Then, check whether your Personal Access Token was created with the block:manage scope in Airtable.
https://airtable.com/developers/web/guides/personal-access-tokens

Finally, reset your API key with the following command:
block set-api-key [APIKEY]

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+18

As a first step, you might ensure your blocks-cli version is the latest as the switch from API keys to personal access tokens was made recently.
More info on the change here: https://support.airtable.com/docs/creating-and-using-api-keys-and-access-tokens

Then, check whether your Personal Access Token was created with the block:manage scope in Airtable.
https://airtable.com/developers/web/guides/personal-access-tokens

Finally, reset your API key with the following command:
block set-api-key [APIKEY]


Forum|alt.badge.img+2
  • New Participant
  • May 30, 2023
Stephen_Orr1 wrote:

As a first step, you might ensure your blocks-cli version is the latest as the switch from API keys to personal access tokens was made recently.
More info on the change here: https://support.airtable.com/docs/creating-and-using-api-keys-and-access-tokens

Then, check whether your Personal Access Token was created with the block:manage scope in Airtable.
https://airtable.com/developers/web/guides/personal-access-tokens

Finally, reset your API key with the following command:
block set-api-key [APIKEY]


Adding block:manage scope to the token fixed the issue.
Thanks!


Reply