Help

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

Solved
Jump to Solution
2420 2
cancel
Showing results for 
Search instead for 
Did you mean: 
stepnvor
4 - Data Explorer
4 - Data Explorer

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!

1 Solution

Accepted Solutions
Stephen_Orr1
10 - Mercury
10 - Mercury

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]

See Solution in Thread

2 Replies 2
Stephen_Orr1
10 - Mercury
10 - Mercury

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!