-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] Catch http errors that don't trigger .then()
#4400
Conversation
If we use 'Log Into Your Bank' disconnecting wifi it spins forever too, is that out of the scope of the fix? I noticed also that when I use 'Log Into Your Bank' I have a back button on top, which can save me from the spinning forever problem. Is it intended that the back button becomes hidden when we submit the form in the 'Connect Manually' flow? I'm still trying to get this message consistently in my local dev environment... it works sometimes and sometimes it seems like it keeps retrying forever to make the connection (disabling wifi / chrome tools option) without getting to the catch. Did you setting yourself offline using chrome dev tools? |
I'm getting the error message after I connect again to the internet. While it is disconnected it looks like it keeps retrying and retrying, shouldn't we give up at some point and notify the user that there is no internet connection? Screen.Recording.2021-08-04.at.11.04.31.AM.movThe first time I tried it, it worked like you show in your video, immediately returning and showing the error message, but now it is behaving like this. Could this be due to some environment configuration that I have? I'm using ngrok and EXPENSIFY_URL_COM=https://www.expensify.com.dev/ (in case that info is of any use) |
Hmm. To be honest with you I wrote those test steps without doing them. I was causing the error by using ngrok and just clicking manual. I assumed disconnecting from the internet would do the same thing, but it looks like a different issue. To clarify, it is testing correctly if you are just connected to the internet and using ngrok? |
Connected to the internet and using ngrok I get the following: Screen.Recording.2021-08-04.at.8.11.22.PM.movI get an error because the transit number is bad, but it doesn't block the interface. |
Interesting haha. I when I had ngrok on I was getting a 404 error which was causing the I updated with better test steps, basically you just need to go into your I'm going to mark this noQA since we can't do that on staging |
.then()
.then()
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.
Tested this w/ the updated steps and it works for me, I didn't have to disconnect my wifi, just changing EXPENSIFY_URL_SECURE
(or SECURE_NGROK_URL
w/ ngrok running) resulted in the error showing.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging in version: 1.0.82-8🚀
|
🚀 Deployed to production by @francoisl in version: 1.0.83-1 🚀
|
Details
We were not catching errors that hit
.catch()
as opposed to.then
when adding user's bank accounts. This led to endless spinners which is a bad user experience. This adds.catch
and throws an error when this happens.Fixed Issues
$ #4321
Tests
EXPENSIFY_URL_SECURE=https://secuasdfre.expensify.com.dev/
QA Steps
Ping me to test this as you need a special account set up
Tested On
Screenshots
Web
2021-08-03_11-23-13.mp4