Skip to content

Commit d65ac78

Browse files
authored
feat(genapi): add troubleshooting section for forbidden error
Add troubleshooting section for forbidden error
1 parent 7c83148 commit d65ac78

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pages/generative-apis/troubleshooting/fixing-common-issues.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ dates:
1313

1414
Below are common issues that you may encounter when using Generative APIs, their causes, and recommended solutions.
1515

16+
## 403: Forbidden - Insufficient permissions to access the resource
17+
18+
### Cause
19+
- You are not providing valid credentials
20+
- You do not have the required IAM permissions sets
21+
- You are not connecting to the right endpoint URL
22+
23+
### Solution
24+
- Ensure you provide an [IAM Secret Key](https://www.scaleway.com/en/docs/iam/how-to/create-api-keys/) in your API request or third party library configuration
25+
- Ensure the [IAM user or application](https://www.scaleway.com/en/docs/iam/reference-content/users-groups-and-applications/) you are connecting with has the right [IAM permissions sets](https://www.scaleway.com/en/docs/iam/reference-content/permission-sets/) (either `GenerativeApisFullAccess` or a narrower one)
26+
- If you have access only to a specific project, ensure you are connecting to this project URL:
27+
- The URL format is: `https://api.scaleway.ai/{project_id}/v1"`
28+
- If no `project_id` is specified in the URL (`https://api.scaleway.ai/v1"`), your `default` project will be used.
29+
1630
## 429: Too Many Requests - You exceeded your current quota of requests/tokens per minute
1731

1832
### Cause

0 commit comments

Comments
 (0)