Open thanneeruvenu opened 2 months ago
fetch
can be any custom valid implementation of fetch
.
Error is coming from
try {
response = await this.fetch(url, requestOptions, retryOptions)
} catch (error) {
// 1.1 Request error: general
throw new REQUEST_ERROR({
which means that your custom proxyFetch
is not a function.
Expected Behaviour
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
const proxyFetch = createFetch();
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem
AioCoreSDKError [AEMHeadlessError]: [AEMHeadless:REQUEST_ERROR] General Request error: originalFetch is not a function. code: 'REQUEST_ERROR', sdk: 'AEMHeadless',