I have a query param that starts with xyz://
and as soon as I launch the query I get this error:
{ "status": "FETCH_ERROR", "error": "TypeError: Network request failed"}
Here's my endpoint code:
...
getHealthRecords: builder.query<any, GetHealthRecordsArgs>({
keepUnusedDataFor: 0,
query: ({facilityId}) => {
return {
url: `health-record/${facilityId}`,
params: {residentUri: 'xyz://'},
};
},
}),
...
It seems like RTK Query doesn't account for this and it breaks the request's url, how can I resolve this issue?