Skip to content

Commit

Permalink
b - prøver å finne ut hvorfor "Nettverksfeil i axiosInstance" skjer
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldlin committed Nov 6, 2024
1 parent 562c13f commit 1db9a8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/api/axiosInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ export const axiosInstance = <T>(
return axiosInstance<T>(config, options, retry + 1);
}

await logWarning(`Nettverksfeil i axiosInstance: ${config.method} ${config.url}: ${status} ${data}`);
await logWarning(
`Nettverksfeil i axiosInstance: ${config.method} ${config.url}: ${status} ${JSON.stringify(data)}`
);
throw e;
});

Expand Down

0 comments on commit 1db9a8c

Please sign in to comment.