You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which package is this bug report for? If unsure which one to select, leave blank
@crawlee/playwright (PlaywrightCrawler)
Issue description
run saveSnapshot(page)
expect SNAPSHOT.jpg saved, but got SNAPSHOT.jpg.jpeg. Also same issue with html file.
Key under which the screenshot and HTML will be saved. .jpg will be appended for screenshot and .html for HTML.
The file name with extension has already been concatenated in playwright-utils, but in key-value-store, the extension is parsed based on "contentType" and concatenated again.
@crawlee/puppeteer has same issue.
Code sample
No response
Package version
3.4.0
Node.js version
16.15.1
Operating system
No response
Apify platform
Tick me if you encountered this issue on the Apify platform
I have tested this on the next release
No response
Other context
No response
The text was updated successfully, but these errors were encountered:
My opinion is that KeyValueStoreClient should detect that the file name already has an extension that matches the content type and not add one anymore.
Check if the key in a File Key Value Storage already has an extension. If so use the key as the file name directly, otherwise append extension.
Closes#1980
Which package is this bug report for? If unsure which one to select, leave blank
@crawlee/playwright (PlaywrightCrawler)
Issue description
saveSnapshot(page)
SNAPSHOT.jpg
saved, but gotSNAPSHOT.jpg.jpeg
. Also same issue with html file.@crawlee/puppeteer has same issue.
Code sample
No response
Package version
3.4.0
Node.js version
16.15.1
Operating system
No response
Apify platform
I have tested this on the
next
releaseNo response
Other context
No response
The text was updated successfully, but these errors were encountered: