We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6038e6e commit 08c0808Copy full SHA for 08c0808
src/handlers/handlerUtils.ts
@@ -771,15 +771,14 @@ export async function tryTargetsRecursively(
771
case StrategyModes.FALLBACK:
772
for (const [index, target] of currentTarget.targets.entries()) {
773
const originalIndex = target.originalIndex || index;
774
- currentJsonPath = `${currentJsonPath}.targets[${originalIndex}]`;
775
response = await tryTargetsRecursively(
776
c,
777
target,
778
request,
779
requestHeaders,
780
fn,
781
method,
782
- currentJsonPath,
+ `${currentJsonPath}.targets[${originalIndex}]`,
783
currentInheritedConfig
784
);
785
if (response?.headers.get('x-portkey-gateway-exception') === 'true') {
0 commit comments