I have installed metabase server in AWS EC2 instance on Ubuntu OS.
I want to share the question to another server. (In my usecase ERPNext). I have configured everthing in ERPNext. But I am unable to display the chart in ERPNext. It is display the 400 Not Found Error. Becuase the METABASE_SITE_URL is mapped to older IP address of the EC2 instance.
Hi @rackymuthu
If you define the environment variable MB_SITE_URL, then you have to update that manually.
If you have not defined that environment variable, then you can change it in Admin > Settings > General.
I have installed the latest version of Metabase.
But, Still not able to see the chart in ERPNext.
Here I have attached the URL For /api/embed/dashboard.
[dcf5a8e9-1219-413f-8153-9bb3fe72f0c0] 2021-09-22T11:12:46+05:30 DEBUG metabase.server.middleware.log GET /api/embed/dashboard/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXNvdXJjZSI6eyJkYXNoYm9hcmQiOjF9LCJwYXJhbXMiOnt9LCJleHAiOjE2MzIyOTA1NjR9.3M1d_XC_wef-ihXav3Ch0uDIrW8FeuZiU1_PdNfCKvs 400 8.8 ms (1 DB calls)
"Not found."
@rackymuthu Does dashboard ID 1 exists and have embedding enabled? Seems like the problem is with whatever you are using to embed Metabase into ERPNext.
The problem is, i am not create a dashboard. instead of this, I just try to share a chart without add it in dashboard. So, once I add the chart in dashboard, It wokrs properly and the dashboard is visible in ERPNext.