Skip to content

All routes intermittently fail (running pode in pode.web, unclear pode.web is related) #1669

Description

@thoffmannaspenware

Describe the Bug

Pode routes intermittently fail. We are on 0.8.3 of Pode.Web, and 2.12.1 of pode. We have seen this 5-6x over a month. Unfortunately, it's so intermittent we don't really know the cause. But I do have a stack trace. We are running in multi-threaded mode, about 10 threads.

Steps To Reproduce

Unknown unfortunately. It does seem to span all threads, or at least many threads.

Expected Behavior

Pode continues to serve routes

Platform

  • OS: Linux
  • Browser: Edge, but all really
  • Versions:
    • Pode.Web: 0.8.3
    • Pode: 2.12.1

Additional Context

========== BEGIN PODE LOG ==========
ThreadId: 3
Server: 1e6e6f272947
Category: OperationStopped: (:) [Get-PodeRoute], NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace: at Get-PodeRoute, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Routes.ps1: line 2408
at Test-PodeWebRoute, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Private/Helpers.ps1: line 443
at Register-PodeWebComponentEventInternal, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Private/Events.ps1: line 48
at Register-PodeWebEvent, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Public/Events.ps1: line 30
at <ScriptBlock>, <No file>: line 10
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 623
at <ScriptBlock>, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Public/Pages.ps1: line 514
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 615
at <ScriptBlock>, <No file>: line 125

Date: 2026-04-06 22:12:57
Level: Error
ThreadId: 3
Server: 1e6e6f272947
Category: System.Collections.Specialized
Message: Object reference not set to an instance of an object.
StackTrace:    at System.Collections.Specialized.OrderedDictionary.OrderedDictionaryEnumerator.get_Current()
   at System.Management.Automation.EnumerableOps.PropertyGetter(PSGetMemberBinder binder, IEnumerator enumerator)
   at Get-PodeRoute(Closure, FunctionContext)

Date: 2026-04-06 22:12:58
Level: Error
ThreadId: 7
Server: 1e6e6f272947
Category: InvalidOperation: (System.Collections.…ictionaryEnumerator:OrderedDictionaryEnumerator) [Find-PodeRoute], RuntimeException
Message: An error occurred while enumerating through a collection: Object reference not set to an instance of an object..
StackTrace: at Find-PodeRoute, /home/site/wwwroot/ps_modules/Pode/2.12.1/Private/Routes.ps1: line 71
at <ScriptBlock>, /home/site/wwwroot/ps_modules/Pode/2.12.1/Private/Middleware.ps1: line 257
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 615
at Invoke-PodeMiddleware, /home/site/wwwroot/ps_modules/Pode/2.12.1/Private/Middleware.ps1: line 41
at <ScriptBlock>, <No file>: line 97

Date: 2026-04-06 22:50:21
Level: Error
ThreadId: 3
Server: 1e6e6f272947
Category: OperationStopped: (:) [Get-PodeRoute], NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace: at Get-PodeRoute, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Routes.ps1: line 2408
at Test-PodeWebRoute, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Private/Helpers.ps1: line 443
at Register-PodeWebComponentEventInternal, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Private/Events.ps1: line 48
at Register-PodeWebEvent, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Public/Events.ps1: line 30
at <ScriptBlock>, <No file>: line 10
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 623
at <ScriptBlock>, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Public/Pages.ps1: line 514
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 615
at <ScriptBlock>, <No file>: line 125

Date: 2026-04-06 22:50:21
Level: Error
ThreadId: 3
Server: 1e6e6f272947
Category: System.Collections.Specialized
Message: Object reference not set to an instance of an object.
StackTrace:    at System.Collections.Specialized.OrderedDictionary.OrderedDictionaryEnumerator.get_Current()
   at System.Management.Automation.EnumerableOps.PropertyGetter(PSGetMemberBinder binder, IEnumerator enumerator)
   at Get-PodeRoute(Closure, FunctionContext)

Date: 2026-04-06 22:50:21
Level: Error
ThreadId: 7
Server: 1e6e6f272947
Category: OperationStopped: (:) [Get-PodeRoute], NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace: at Get-PodeRoute, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Routes.ps1: line 2408
at Test-PodeWebRoute, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Private/Helpers.ps1: line 443
at Register-PodeWebComponentEventInternal, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Private/Events.ps1: line 48
at Register-PodeWebEvent, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Public/Events.ps1: line 30
at <ScriptBlock>, <No file>: line 10
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 623
at <ScriptBlock>, /home/site/wwwroot/ps_modules/Pode.Web/0.8.3/Public/Pages.ps1: line 514
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 615
at <ScriptBlock>, <No file>: line 125

Date: 2026-04-06 22:50:21
Level: Error
ThreadId: 7
Server: 1e6e6f272947
Category: System.Collections.Specialized
Message: Object reference not set to an instance of an object.
StackTrace:    at System.Collections.Specialized.OrderedDictionary.OrderedDictionaryEnumerator.get_Current()
   at System.Management.Automation.EnumerableOps.PropertyGetter(PSGetMemberBinder binder, IEnumerator enumerator)
   at Get-PodeRoute(Closure, FunctionContext)

Date: 2026-04-06 22:50:21
Level: Error
ThreadId: 4
Server: 1e6e6f272947
Category: InvalidOperation: (System.Collections.…ictionaryEnumerator:OrderedDictionaryEnumerator) [Find-PodeRoute], RuntimeException
Message: An error occurred while enumerating through a collection: Object reference not set to an instance of an object..
StackTrace: at Find-PodeRoute, /home/site/wwwroot/ps_modules/Pode/2.12.1/Private/Routes.ps1: line 71
at <ScriptBlock>, /home/site/wwwroot/ps_modules/Pode/2.12.1/Private/Middleware.ps1: line 257
at Invoke-PodeScriptBlock, /home/site/wwwroot/ps_modules/Pode/2.12.1/Public/Utilities.ps1: line 615
at Invoke-PodeMiddleware, /home/site/wwwroot/ps_modules/Pode/2.12.1/Private/Middleware.ps1: line 41
at <ScriptBlock>, <No file>: line 97

========== END PODE LOG ==========

Metadata

Metadata

Assignees

Labels

Projects

Status
Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions