Tests fail on Serverless Functions
Problem
I get error messages when testing Serverless Functions using the Scaleway Console.
Cause
Testing Private Serverless Functions is not possible using the Scaleway console due to CORS limitations.
Possible solutions
-
Change the visibility of your function to public. Public functions can be executed anonymously.
-
Make sure you have created an authentication token for your private function, then execute a
curl
request from a terminal, as shown below:curl -H "X-Auth-Token: <YOUR_AUTH_TOKEN>" \ <YOUR_FUNCTION_ENDPOINT>
Still need help?Create a support ticket