-
Notifications
You must be signed in to change notification settings - Fork 400
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
[importExternalReference] Bypasses certain security measures when generating a PDF or MD #2761
base: master
Are you sure you want to change the base?
Conversation
…erating a PDFÃ or MD
@Megafredo @helene-nguyen can we also put a user agent more standard using Playwright like the one we have in the previous version of the connector (Mozilla ...)? |
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.
Looks good to me 👍
Just a remark on error handling.
except: | ||
continue |
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.
I think you could only except playwright error here and log message with debug level.
https://playwright.dev/python/docs/api/class-error [consulted on October 7th, 2024]
pass | ||
if found: | ||
page.wait_for_timeout(2000) | ||
browser, page = self._process_playwright(p, url_to_import) |
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.
Nice code splitting 👍.
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.
Code looks ok to me.
Proposed changes
Related issues
Checklist
Further comments