Skip to content

[BUG] Shared response instance issue in similar Fetch calls #11

@hemant-fundwave

Description

@hemant-fundwave

Current behavior

When similar fetch calls are made, they share the same instance of the response object. As a result, when response.json() is invoked by the first fetch call, subsequent fetch calls receive the already-resolved output of response.json() instead of the original response object.

Expected behavior

Each fetch call should return a unique instance of the response object to ensure isolation between calls.

Is there an existing ticket?

Yes - ticket link

Steps to reproduce

NA

Context

Regression? It was working until 1.13

Environment: Production

Evidence

NA

Suggested Solutions

  • Ensure the response object is cloned for each fetch promise resolver.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions