Charts suddenly stopped rendering yesterday despite no changes being made our side.
Expected behavior
Charts should render.
Failure Logs
See console errors. Looks like CORS issue but doesn’t make sense as other graphs that are rendering are relying on same endpoints with similar data and filters (only the dates differ)
Please provide in this mandatory section, the relevant information about your configuration:
Project: Bridgement.1
Package Version: “forest-express-sequelize”: “^8.4.10”,
Express Version: “express”: “^4.17.1”,
Sequelize Version: “sequelize”: “6.6.2”,
Database Dialect: postgresql
Hi @dig I’m sad to hear that,
In order to try to reproduce and understand what happen, I have some questions.
Have you got any errors logs on your backend?
Did the issue appear on all environment?
Did the issue appear on the dashboard view or on the collection analytics view?
EDIT:
And what kind of chart it is? Simple, Query or API?
Looks like mostly are single value charts, but some time based too.
Only have a single environment.
Issue occurred in Dashboard view (we don’t use collection analytics)
I’ll have to check with engineers on the backend error logs
Well … the cloudfront HTML response may have helped here
Do you use some WAF rules on your cloudfront for security purpose? We do have a few clients referencing this issue (Request blocked) using cloudflare.
This is easily checked by:
Checking your agent for the stats call, and check if your backend is able to send a response (At least, check if the agent is contacted)
Check the CORS request response, and check for headers, just in case the request is blocked by a CDN (X-server, or any other header)
Not sure if it’s related, but looking for cloudflare, it seems like we have a few threads around this topic
As for the WAF issues, I’ll PM you the returned html.
The stats calls seems to be working fine on different dashboard graphs. (All done using simple graphs) which leads me to believe that it is not an issue with Cloudflare.
I see here that this problem is similar to what we are experiencing, but it seems that the issue was resolved. However I am getting the same errors.
After further discussion, it appear that the fix did not retro-actively fixed the failing charts.
Re-saving the configuration of a chart having this issue should fix the issue as well. This is far from being a perfect solution, however, this will unlock the issue on your end.
This issue has been reported - and everything seems to work as expected by now, so I’m marking this thread as resolved. Don’t hesitate to open a new thread if you are still encountering the issue