Skip to content

Commit d1bf1c8

Browse files
committed
docs(srv): update
1 parent 0d3aa1a commit d1bf1c8

File tree

7 files changed

+67
-57
lines changed

7 files changed

+67
-57
lines changed

menu/navigation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3783,8 +3783,8 @@
37833783
"slug": "too-many-retries"
37843784
},
37853785
{
3786-
"label": "Tests fail on private functions",
3787-
"slug": "tests-fail-on-private-function"
3786+
"label": "Tests fail on functions",
3787+
"slug": "tests-fail-on-function"
37883788
}
37893789
],
37903790
"label": "Troubleshooting",
@@ -3950,7 +3950,7 @@
39503950
},
39513951
{
39523952
"label": "Tests fail on private containers",
3953-
"slug": "tests-fail-on-ùprivate-container"
3953+
"slug": "tests-fail-on-container"
39543954
}
39553955
],
39563956
"label": "Troubleshooting",

serverless/containers/how-to/test-a-container.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ This page shows you how to execute Serverless Containers from the [Scaleway cons
4040
The **Output** section displays the response from your container and the status code.
4141

4242
<Message type="note">
43-
If you encounter a message error while testing your container, refer to the [dedicated troubleshooting](/serverless/containers/troubleshooting/tests-fail-on-private-container/) for more information.
43+
If you encounter a message error while testing your container, refer to the [dedicated troubleshooting](/serverless/containers/troubleshooting/tests-fail-on-container/) for more information.
4444
</Message>

serverless/containers/troubleshooting/tests-fail-on private-container.mdx

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
meta:
3+
title: Tests fail on Serverless Containers
4+
description: I get error messages when testing Serverless Containers using the Scaleway Console
5+
content:
6+
h1: Tests fail on Serverless Containers
7+
paragraph: I get error messages when testing Serverless Containers using the Scaleway Console
8+
tags: serverless containers private troubleshooting issue error test authentication token unable
9+
dates:
10+
validation: 2025-01-14
11+
posted: 2025-01-14
12+
categories:
13+
- serverless
14+
---
15+
16+
## Problem
17+
18+
I get error messages when testing Serverless Containers using the Scaleway Console.
19+
20+
### Cause
21+
22+
Testing **Private** Serverless Containers is not possible using the Scaleway console due to CORS limitations.
23+
24+
### Possible solutions
25+
26+
- Change the visibility of your function to **public**. Public containers can be executed anonymously.
27+
28+
- Make sure you have created an [authentication token](/serverless/containers/how-to/create-auth-token-from-console/) for your private function, then exexute a `curl` request from a terminal, as shown below:
29+
```sh
30+
curl -H "X-Auth-Token: <YOUR_AUTH_TOKEN>" \ <YOUR_CONTAINER_ENDPOINT>
31+
```

serverless/functions/how-to/test-a-function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ This page shows you how to execute Serverless Functions from the [Scaleway conso
4040
The **Output** section displays the response from your function and the status code.
4141

4242
<Message type="note">
43-
If you encounter a message error while testing your function, refer to the [dedicated troubleshooting](/serverless/functions/troubleshooting/tests-fail-on-private-function/) for more information.
43+
If you encounter a message error while testing your function, refer to the [dedicated troubleshooting](/serverless/functions/troubleshooting/tests-fail-on-function/) for more information.
4444
</Message>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
meta:
3+
title: Tests fail on Serverless Functions
4+
description: I get error messages when testing Serverless Functions using the Scaleway Console
5+
content:
6+
h1: Tests fail on Serverless Functions
7+
paragraph: I get error messages when testing Serverless Functions using the Scaleway Console
8+
tags: serverless functions private troubleshooting issue error test authentication token unable
9+
dates:
10+
validation: 2025-01-14
11+
posted: 2025-01-14
12+
categories:
13+
- serverless
14+
---
15+
16+
## Problem
17+
18+
I get error messages when testing Serverless Functions using the Scaleway Console.
19+
20+
### Cause
21+
22+
Testing **Private** Serverless Functions is not possible using the Scaleway console due to CORS limitations.
23+
24+
### Possible solutions
25+
26+
- Change the visibility of your function to **public**. Public functions can be executed anonymously.
27+
28+
- Make sure you have created an [authentication token](/serverless/functions/how-to/create-auth-token-from-console/) for your private function, then exexute a `curl` request from a terminal, as shown below:
29+
```sh
30+
curl -H "X-Auth-Token: <YOUR_AUTH_TOKEN>" \ <YOUR_FUNCTION_ENDPOINT>
31+
```

serverless/functions/troubleshooting/tests-fail-on-private-function.mdx

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)