@adobe/helix-onedrive-support 11.3.12 → 11.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/OneDrive.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [11.3.13](https://github.com/adobe/helix-onedrive-support/compare/v11.3.12...v11.3.13) (2024-03-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* detect temporary issue ([#506](https://github.com/adobe/helix-onedrive-support/issues/506)) ([75377b8](https://github.com/adobe/helix-onedrive-support/commit/75377b867e5b1bb4721a402b49924ea1c2c17f4e))
|
|
7
|
+
|
|
1
8
|
## [11.3.12](https://github.com/adobe/helix-onedrive-support/compare/v11.3.11...v11.3.12) (2024-03-10)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/OneDrive.js
CHANGED
|
@@ -135,6 +135,10 @@ export class OneDrive {
|
|
|
135
135
|
} catch (e) {
|
|
136
136
|
if (text.startsWith('<!DOCTYPE html>')) {
|
|
137
137
|
log.warn('Graph API returned html response', text);
|
|
138
|
+
if (!rateLimit && text.indexOf('This is a temporary issue') !== -1) {
|
|
139
|
+
// eslint-disable-next-line no-param-reassign
|
|
140
|
+
rateLimit = new RateLimit({ retryAfter: 60 });
|
|
141
|
+
}
|
|
138
142
|
text = 'Something went wrong: HTML error from graph api.';
|
|
139
143
|
}
|
|
140
144
|
err = new StatusCodeError(text, resp.status, null, rateLimit);
|