500 Server Error when migrating dashboards

Issue Summary

Trying to migrate redash from one server with version 10 to another server with version 10.1 and getting 500 Server Error for the dashboards other migration worked fine

Technical details:

  • Redash Version: 10.0.0 to 10.1.0
  • Browser/OS: Lunux
  • How did you install Redash:AWS AMI

Looks like the issue is with the new dashboards naming URL

redash-migrate dashboards
Importing dashboards…
importing: bettertogethr-app-dashboard
500 Server Error: INTERNAL SERVER ERROR for url: http://x.x.x.x//api/dashboards/bettertogethr-app-dashboard
Traceback (most recent call last):
File “/home/ubuntu/bt/lib/python3.6/site-packages/redash_toolbelt/examples/migrate.py”, line 1233, in wrapped
func(*args, **kwargs)
File “/home/ubuntu/bt/lib/python3.6/site-packages/redash_toolbelt/examples/migrate.py”, line 752, in import_dashboards
d = orig_client.dashboard(dashboard[“slug”])
File “/home/ubuntu/bt/lib/python3.6/site-packages/redash_toolbelt/client.py”, line 85, in dashboard
return self._get(“api/dashboards/{}”.format(slug)).json()
File “/home/ubuntu/bt/lib/python3.6/site-packages/redash_toolbelt/client.py”, line 203, in _get
return self._request(“GET”, path, **kwargs)
File “/home/ubuntu/bt/lib/python3.6/site-packages/redash_toolbelt/client.py”, line 214, in _request
response.raise_for_status()
File “/home/ubuntu/bt/lib/python3.6/site-packages/requests/models.py”, line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://x.x.x.x//api/dashboards/bettertogethr-app-dashboard
Saving meta…

The working dashboard URL is:
http://x.x.x.x/dashboards/2-bettertogethr-app-dashboard