From 9192c00f49aa9e5c57f311559a501f27d416790d Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Mon, 10 Feb 2025 15:24:55 +0100 Subject: [PATCH 1/2] docs(srv): add function build error troubleshooting MTA-5554 --- menu/navigation.json | 4 +++ .../troubleshooting/function-build-error.mdx | 32 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pages/serverless-functions/troubleshooting/function-build-error.mdx diff --git a/menu/navigation.json b/menu/navigation.json index f4f4a68a1d..42823a2293 100644 --- a/menu/navigation.json +++ b/menu/navigation.json @@ -4014,6 +4014,10 @@ "label": "My function is in an error state", "slug": "function-in-error-state" }, + { + "label": "My function does not build properly", + "slug": "function-build-error" + }, { "label": "My function stopped working after a redeploy", "slug": "function-stopped-after-redeploy" diff --git a/pages/serverless-functions/troubleshooting/function-build-error.mdx b/pages/serverless-functions/troubleshooting/function-build-error.mdx new file mode 100644 index 0000000000..631ee21497 --- /dev/null +++ b/pages/serverless-functions/troubleshooting/function-build-error.mdx @@ -0,0 +1,32 @@ +--- +meta: + title: My function does not build properly + description: Troubleshoot issues with build errors while using Scaleway Serverless Functions. +content: + h1: My function does not build properly + paragraph: Troubleshoot issues with build errors while using Scaleway Serverless Functions. +tags: serverless functions troubleshooting issue error build compile package +dates: + validation: 2025-02-10 + posted: 2025-02-10 +categories: + - serverless +--- + +## Problem + +My Serverless Function does not build properly. + +## Cause + +This error may happen for multiple reasons. Refer to the documentation below to identify the reason of your problem. + +## Possible solution + +1. Make sure your function works fine by [testing it locally](/serverless-functions/reference-content/local-testing/) + +2. Check for [build errors with Cockpit](/serverless-functions/how-to/monitor-function/) + +3. Make sure your function is [properly packaged](/docs/serverless-functions/how-to/package-function-dependencies-in-zip/) + +4. Check our [code examples](/serverless-functions/reference-content/code-examples/) to find out how Scaleway Serverless Functions are structured. From d51aeb128249ccc2a2038819a31d0a3b2a6a14ed Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Mon, 10 Feb 2025 15:26:23 +0100 Subject: [PATCH 2/2] docs(srv): update --- .../troubleshooting/function-build-error.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/serverless-functions/troubleshooting/function-build-error.mdx b/pages/serverless-functions/troubleshooting/function-build-error.mdx index 631ee21497..e2a3654169 100644 --- a/pages/serverless-functions/troubleshooting/function-build-error.mdx +++ b/pages/serverless-functions/troubleshooting/function-build-error.mdx @@ -19,14 +19,14 @@ My Serverless Function does not build properly. ## Cause -This error may happen for multiple reasons. Refer to the documentation below to identify the reason of your problem. +This error may happen for multiple reasons. Refer to the documentation pages below to identify the problem. ## Possible solution -1. Make sure your function works fine by [testing it locally](/serverless-functions/reference-content/local-testing/) +1. Make sure your function works fine by [testing it locally](/serverless-functions/reference-content/local-testing/). -2. Check for [build errors with Cockpit](/serverless-functions/how-to/monitor-function/) +2. Check for [build errors with Cockpit](/serverless-functions/how-to/monitor-function/). -3. Make sure your function is [properly packaged](/docs/serverless-functions/how-to/package-function-dependencies-in-zip/) +3. Make sure your function is [properly packaged](/docs/serverless-functions/how-to/package-function-dependencies-in-zip/). 4. Check our [code examples](/serverless-functions/reference-content/code-examples/) to find out how Scaleway Serverless Functions are structured.