I’m in a process to migrate from one Redash environment to another, which is a copy from the original already created. I was successful in the migration of the Queries and Visualizations, but not with the Dashboards and Widgets so far.
I’m using the v8 of Redash on both environments, and to migrate from one to another i’m using the migrator script: migrator.py
The issue is with the Widgets creation, since i can migrate succesfully the dashboards alone.
What i’m trying to do, is create first the Dashboard via post in the destination, and afterwards in the same process of the script, create the Widgets of that Dashboard. I’m using pretty much the same structure provided in the migrator script, with some logic modifications and adaptations for our case.
The error tha i’m facing is
500 Server Error: INTERNAL SERVER ERROR for url: https://my-domain//api/widgets
Like occured with the visualizations of the queries, the parameters i’m using are the parameters provided from the migrator script, once the documentation doesn’t specify which are able to use. And also, differently from the dashboards and queries, i cant access the visualizations and widgets API path(eg. url: …api/widgets), of which i believe is designed this way.
In this situation my progress is being determined by trial and error, suspecting for a long time that this issue may be occuring by incorrect parameter sending, via the request post method. Because using the Redash-API-Client, i’m succesfully inserting/creating the Widgets in the desired Dashboard.
Would anyone know the probable cause for this issue to be happening? Or is there some documentation about widgets POST method, including the necessary parameters to be send?
Thanks in advance.