-
Notifications
You must be signed in to change notification settings - Fork 9
Failed to fetch notification #347
Comments
I also got several failed to fetch notifications for Cowswap today( between 10 and 11am). Now they seem to be resolved |
That is a generic error message that we display when we fail to fetch the order details from the backend. There are already pending issues to better handle the error message. Regarding the issue, might have been an sporadic network or backend failure. Can't tell at this point. |
There might be also a technical reason to see this non informative message. details: This is also likely related to one issue @vkgnosis discovered today. When the ther backend returns an Error, it's sometimes not returning the CORS headers, this makes the actual request to fail, so even if it's a controlled and nice typed error, the FE will see it as a failed fetch request. |
Linking this to this related issue gnosis/cowswap#339 |
@alongoni @fapesteguia @maria-vslvn this would be a nice issue to tackle next. |
Perhaps using toast notifications would be a good idea? Like this one https://www.npmjs.com/package/react-toastify |
I see different objectives
For both objectives I regard a toast notification inappropriate for the purpose it intends to serve. A toast notification IMO should be shown after an explicit user initiate action (e.g. you submitted an order -> getting feedback from a toast notification or an order gets settled, etc.). Instead
The offline banner (point 1 above) could also be shown just like point 2. |
I'm wondering now about this. The UI is still functional, you can still see everything about your order. What if we don't say anything at all for this type of error? Of if we do, something like point |
hey @alfetopito, something like this? |
Yes, that is more subtle. @biocom good with you? |
Looks good @alongoni Small nitpick: I would left align the text, to match the other left aligned content on the rest of the page. |
What about adding the link to the 'try again' what will refresh the page? |
@maria-vslvn Can you handle this issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue is a WIP in #992 pr |
I got the following message below the order details

It appears and disappears. After refreshing the website only the error message was shown
The text was updated successfully, but these errors were encountered: