I made it a third time and it works as well.
Now I will add the dependencies without changing the code...
adding the dependencies does not generate the issue...
so it means that I really need to add almost line by line my code in this function and check at what time it fails !
Thank you for having guided me back to the basics and put me back at a point where I can start again
I'll keep you posted with the result of this.
OK I have found the issue. It appears when a variable "PATH" is present : {
"$id": "test4",
"name": "test4",
"runtime": "dart-2.17",
"path": "functions/test4",
"entrypoint": "lib/main.dart",
"ignore": [
".packages",
".dart_tool"
],
"execute": [],
"events": [],
"schedule": "",
"timeout": 15,
"variables": {
"PATH": "path"
}
}
Oh wow lol
I just have to rename the variable and then it works...
But it looks like either a bug either a documentation issue where PATH should be a reserved word
Anyway thanks again for your support.
Cc @VincentGe 😂
🤣
Which page is this on?
we might want to document in our functions docs or maybe on the variables page in the console.
maybe...
:👀
I vote for adding reserved keywords as a check in console @Sara @Chen. If it can't be set, we should just prevent it via code.
I also think we can add checks for the route with better error messages.
This is too much fine detail to expect people to read 😓
When we can just tell them they can't when they try it's easier
that's a good idea
cc @Carla
Actually, maybe not console. Maybe the API should block certain variable names
Agree -- we could also include a recommendation in the UI about suggested variable names or ones that shouldn't be used if it will help reduce user error
👀 Yeah ideally we just help them out with a more specific hint, or just like don't let them enter the first letter as a symbol or smthing else. Feels totally preventable via code
Recommended threads
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...