-
Notifications
You must be signed in to change notification settings - Fork 204
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
Enhance debugging #188
Comments
@elie222 Thanks for reporting this bug. There are two people that have opened this and this is a bug clearly. I think the issue arises from Playwright waitForLoad method that waits for the pages to be loaded after navigation or initial load of browser. I am investigating this issue and will open a fix for this soon. |
Thanks. I tried it on https://github.com/elie222/inbox-zero. Although will take a little time just to get the project running. It is a Next.js app. I'll take a deeper look myself. If there's a debug / verbose mode may help debug as well. |
Ah, I found debug mode: pnpm shortest --debug-ai |
Maybe should just be --debug or --verbose? Unless the debugging is specifically only for the AI part |
Ya, so |
@elie222 Could you try increasing timeout? Also, what do you see in Chromium (make sure you're not running in headless mode)? |
Same issue here. Chromium opens up my site, then nothing happens after that, then timeout after 30 seconds. |
What's the test you're running? |
I can see some code in
i was able to reproduce a similar error, using a sample html page that fires fetches non stop for 30 seconds. ( asked claude to generate, i've attached the code as a gist if anyone wants to reproduce the behaviour ) https://gist.github.com/amk-dev/164614f5b36d2bd2ba0bbf24198df017#file-non-stop-fetches-html @elie222 @courthead any chance this might be happening with you guys ? |
Okay, I got it working. I think it had nothing to do with the tests. (Here's my only test btw: I'm using Ember and I typically serve my app locally by running However, another way for me to serve my app locally is to spin up a server with Node/Express, and just have that serve my Ember app, also at
I don't think that's it for me. |
Hey, I will check later. Could be that networkidle never happens. Even though it looks like the page has fully loaded in the browser immediately. |
Identifying and resolving bugs like this would be significantly easier with comprehensive logging across the codebase. It’s likely that an error is being thrown but isn’t logged within the My proposal is:
|
Set a super basic example in my repo:
But would get this each time:
On a Next.js project. Followed the set up steps.
The text was updated successfully, but these errors were encountered: