File is not allowed
What the path_blocked error from the Perafly API means and what to do about it.
- Code
path_blocked- HTTP status
- 422
What it means
A file is never published: secrets and local state such as .env* (except .env.example), .git/, node_modules/, private keys (*.pem, *.key, id_rsa), .npmrc, .netrc and .perafly/state.json. Without an account, only static file types are accepted. The response names the path and the reason.
A typical detail: "<path>" is not uploaded (<reason>).
What to do
Remove the file from the folder you publish, or publish the build output instead of the whole project. Keep secrets in environment variables.
Read more: Publishing
Example response
This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.