Skip to content

fix: handle undefined response from auth plugin fetch#4759

Closed
kavhnr wants to merge 1 commit into
anomalyco:devfrom
kavhnr:fix/response-headers-undefined
Closed

fix: handle undefined response from auth plugin fetch#4759
kavhnr wants to merge 1 commit into
anomalyco:devfrom
kavhnr:fix/response-headers-undefined

Conversation

@kavhnr

@kavhnr kavhnr commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

Fixes #2012

Auth plugins can return undefined from custom fetch when token refresh fails temporarily. This adds a guard that throws a retryable APICallError, letting existing retry logic handle it automatically.

The error was: TypeError: undefined is not an object (evaluating 'response.headers')

@kavhnr kavhnr closed this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: undefined is not an object (evaluating 'response.headers')

1 participant