-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(storage-client): parseFromString
requires valid mimeType
#424
Conversation
The committers listed above are authorized under a signed CLA. |
@@ -95,7 +95,7 @@ export function parseNotes(content) { | |||
* @returns {Promise<ChromedriverDetailsMapping>} | |||
*/ | |||
export async function parseGoogleapiStorageXml(xml, shouldParseNotes = true) { | |||
const doc = new DOMParser().parseFromString(xml); | |||
const doc = new DOMParser().parseFromString(xml, 'application/xml'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you import MIME_TYPE
like appium/appium#20513 instead of giving vanilla value?
It is appreciated to set ^0.9
for https://github.com/appium/appium-chromedriver/blob/master/package.json#L47 as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I believe we need to import the same constant as in https://github.com/appium/appium/pull/20513/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also it definitely makes sense to bump the minimum version of xmldom in package.json to 0.9.0
Thanks for the change! I'm using |
Yes, exactly, |
https://www.npmjs.com/package/@xmldom/xmldom/v/0.9.0 was released ~20 hours ago so the image should start failing in one of the future runs. |
@krystofwoldrich Would it be possible to change the version from |
Closed in favour of #425 |
This PR fixes error caused by recent version of https://www.npmjs.com/package/@xmldom/xmldom/v/0.9.0 where mimeType became required argument.