From d65ac780b45738b7c2be8f1cc34f4ace493eb944 Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 19 Mar 2025 10:44:31 +0100 Subject: [PATCH 1/2] feat(genapi): add troubleshooting section for forbidden error Add troubleshooting section for forbidden error --- .../troubleshooting/fixing-common-issues.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx index eca438252d..08d74dff2e 100644 --- a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx +++ b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx @@ -13,6 +13,20 @@ dates: Below are common issues that you may encounter when using Generative APIs, their causes, and recommended solutions. +## 403: Forbidden - Insufficient permissions to access the resource + +### Cause +- You are not providing valid credentials +- You do not have the required IAM permissions sets +- You are not connecting to the right endpoint URL + +### Solution +- 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 +- 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) +- If you have access only to a specific project, ensure you are connecting to this project URL: + - The URL format is: `https://api.scaleway.ai/{project_id}/v1"` + - If no `project_id` is specified in the URL (`https://api.scaleway.ai/v1"`), your `default` project will be used. + ## 429: Too Many Requests - You exceeded your current quota of requests/tokens per minute ### Cause From 540e771d47cf1bee6faae8b1a86f10c962cf6ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9da?= <87707325+nerda-codes@users.noreply.github.com> Date: Fri, 21 Mar 2025 15:14:13 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../troubleshooting/fixing-common-issues.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx index 08d74dff2e..38ce657626 100644 --- a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx +++ b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx @@ -21,11 +21,11 @@ Below are common issues that you may encounter when using Generative APIs, their - You are not connecting to the right endpoint URL ### Solution -- 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 -- 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) -- If you have access only to a specific project, ensure you are connecting to this project URL: +- Ensure you provide an [API secret key](/iam/how-to/create-api-keys/) in your API request or third party library configuration +- 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) +- If you have access only to a specific Project, ensure you are connecting to this Project URL: - The URL format is: `https://api.scaleway.ai/{project_id}/v1"` - - If no `project_id` is specified in the URL (`https://api.scaleway.ai/v1"`), your `default` project will be used. + - If no `project_id` is specified in the URL (`https://api.scaleway.ai/v1"`), your `default` Project will be used. ## 429: Too Many Requests - You exceeded your current quota of requests/tokens per minute