Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I build a custom visual that call a external api with a interval, this is the code:
Solved! Go to Solution.
Hi @dpzafra ,
There are a few areas we need to review to troubleshoot the issue effectively:
1. CORS Configuration: Since your API is set up to accept requests from any origin (origin: '*'), this should generally not be the issue. However, it's worth ensuring that your Node server's CORS configuration is correctly implemented and that there are no additional security measures in place that might block requests when your visual is not in development mode.
2. Power BI Desktop Environment: Power BI Desktop might have different security and execution environments compared to the development mode. Ensure that your Power BI Desktop is up to date. Although not directly related, keeping your software updated can sometimes resolve unexpected issues.
3. Network Configuration: Verify that there are no network issues or firewalls blocking the request from Power BI Desktop to your local server. This is a common issue when moving from a development environment to a more restricted execution environment like Power BI Desktop.
4. Debugging the Issue: To further diagnose the problem, it would be helpful to know if there are any error messages or codes returned when the request fails. Additionally, checking the network activity using tools like Fiddler or the network tab in browser developer tools (if testing in Power BI Service) can provide insights into what might be going wrong.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Dino, include:
Hi @dpzafra ,
There are a few areas we need to review to troubleshoot the issue effectively:
1. CORS Configuration: Since your API is set up to accept requests from any origin (origin: '*'), this should generally not be the issue. However, it's worth ensuring that your Node server's CORS configuration is correctly implemented and that there are no additional security measures in place that might block requests when your visual is not in development mode.
2. Power BI Desktop Environment: Power BI Desktop might have different security and execution environments compared to the development mode. Ensure that your Power BI Desktop is up to date. Although not directly related, keeping your software updated can sometimes resolve unexpected issues.
3. Network Configuration: Verify that there are no network issues or firewalls blocking the request from Power BI Desktop to your local server. This is a common issue when moving from a development environment to a more restricted execution environment like Power BI Desktop.
4. Debugging the Issue: To further diagnose the problem, it would be helpful to know if there are any error messages or codes returned when the request fails. Additionally, checking the network activity using tools like Fiddler or the network tab in browser developer tools (if testing in Power BI Service) can provide insights into what might be going wrong.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
| User | Count |
|---|---|
| 51 | |
| 38 | |
| 33 | |
| 22 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 101 | |
| 58 | |
| 36 | |
| 35 |