wstrange / firebase_dart_ui

Dart wrapper for https://github.com/firebase/firebaseui-web
MIT License
12 stars 10 forks source link

"The operation has timed out" error only when debugging with IntelliJ #4

Closed gazialankus closed 6 years ago

gazialankus commented 6 years ago

I often get this with DDC (hitting play [edit: debug, not play] in IntelliJ). I never get this with dart2js (deploying it to Firebase hosting). But curiously, I don't get this on some days. [edit: see my following comments, this only happens when the IntelliJ debugger is connected.]

image

Here's the error I see on the console: image

This happens after coming back to my site from Google auth.

wstrange commented 6 years ago

I wonder if the underlying firebase js library needs to be updated. I don't think I saw this before.

gazialankus commented 6 years ago

In my index.html I'm including firebase js 4.10.1 and firebaseui js 2.6.2, which is what's there in the example here: https://github.com/wstrange/firebase_dart_ui/blob/master/example/web/index.html

I remember trying different versions and having the same issue, but I'm happy to try it again if there are versions that you would suggest.

wstrange commented 6 years ago

I just updated the example app for Dart 2, and tested it with intellij. It works fine. Please give it a go and reopen if you still have problems.

gazialankus commented 6 years ago

Sorry I need to make a correction: I don't hit play in IntelliJ, I hit debug.

I just upgraded my app like your example and I'm getting the same situation as before. Here's my detailed observation: When I start it with debug in IntelliJ, this error happens. However, pressing stop in IntelliJ and refreshing the browser (running without the debugger connected) does not create this error and works just fine.

I will now try the example in this repo.

gazialankus commented 6 years ago

Yes, the latest example here also has the same issue when debugged with IntelliJ. Here's how to reproduce:

screenshot - 8_11_2018 11_40_37 am

screenshot - 8_11_2018 11_40_52 am

(top-right of the screen below shows we're debugging) screenshot - 8_11_2018 11_41_08 am

screenshot - 8_11_2018 11_41_34 am

Edit: I'm not sure if I have the permission to reopen this issue, could not find how to do that. Could you reopen it?

wstrange commented 6 years ago

I think this is more a general issue of debugging mixed dart / JS code using DDC. I am not sure there is much I can do here as it is more of a general SDK / DDC issues

If you have any suggestions, I'm open to them..

gazialankus commented 6 years ago

Thanks. What's the best place to raise this issue?