Closed mdg-pnw closed 3 weeks ago
Hi @mdg-pnw,
I've managed to reproduce the issue, and committed a fix for it just now.
The error was happening because Pode's caching feature configures a Timer to expire items, when running via Serverless this isn't needed.
Describe the Bug
I'm following: https://badgerati.github.io/Pode/Hosting/AzureFunctions/#the-server
When I run this, I am getting an exception even though I don't have Add-PodeTimers in my script. It seems like it's not recognizing that it's serverless.
Steps To Reproduce
When I run this in VSCode using the Azure Core Tools, I'm getting an exception:
Expected Behavior
I'm expecting the page to load.
Platform
Additional Context
I'm running this in VSCode before uploading it to Azure. I'm not sure if it's checking something on my local system to determine whether it's serverless or not. I would expect that if
-ServerlessType
is set, then that would be the context it would use.