Skip to content

Commit 700c9de

Browse files
fpagnynerda-codesRoRoJ
committed
feat(genapi): add troubleshooting section for forbidden error (#4657)
* feat(genapi): add troubleshooting section for forbidden error Add troubleshooting section for forbidden error * Apply suggestions from code review Co-authored-by: Rowena Jones <[email protected]> --------- Co-authored-by: Néda <[email protected]> Co-authored-by: Rowena Jones <[email protected]>
1 parent 687064c commit 700c9de

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 [API secret key](/iam/how-to/create-api-keys/) in your API request or third party library configuration
25+
- Ensure the [IAM user or application](/iam/reference-content/users-groups-and-applications/) you are connecting with has the right [IAM permissions sets](/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)