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 ce1107c commit a9ffefeCopy full SHA for a9ffefe
src/requestHandler.js
@@ -2,7 +2,7 @@ import {
2
createPayload,
3
debugLog,
4
getPayloadSize,
5
- normalizePayload,
+ normalizePayload
6
} from './utils.js'
7
8
import { randomUUID } from './randomUUID.js'
@@ -99,7 +99,12 @@ export class RequestHandler {
99
return true
100
} catch (error) {
101
debugLog(this._config.debug, 'Fetch fallback failed:', error)
102
- return false
+ if (error.name === 'TypeError') {
103
+ debugLog(this._config.debug, 'Network error detected.');
104
+ } else {
105
+ debugLog(this._config.debug, 'HTTP error detected.');
106
+ }
107
+ return false;
108
}
109
110
0 commit comments