question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

URL data source settings screen crashes the front-end

See original GitHub issue

Issue Summary

The URL data source is deprecated but many of them still exist in the wild. If you visit settings for the data source, the front-end crashes.

Steps to Reproduce

  1. Create a new type: url data source via the API:
curl --request POST \
  --url https://app.redash.io/default/api/data_sources \
  --header 'authorization: Key <your api key>' \
  --header 'content-type: application/json' \
  --data '{
  "name": "Bug Proof",
  "type": "url",
  "syntax": "sql",
  "paused": 0,
  "pause_reason": null,
  "options": {
    "password": "pass",
    "url": "example.com",
    "username": "user"
  },
  "queue_name": "queries",
  "scheduled_queue_name": "scheduled_queries"
}'
  1. Try to view the data source in settings. The front-end crashes and the console fills with dynamicForm errors
image

Technical details:

  • Redash Version: v9 alpha
  • Browser/OS: FF & Chrome
  • How did you install Redash: SaaS

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gabrieldutracommented, Mar 23, 2020

Does the URL data source have a configuration schema? I don’t see one in url.py.

Yes, it’s totally based on BaseHTTPQueryRunner

1reaction
gabrieldutracommented, Mar 23, 2020

One option is to have the API return the configuration schemas for all data source types, but mark the deprecated ones so they are excluded from the create UI.

Oh, I see, I thought the deprecated ones had their code deleted 😅. That’s feasible, basically move the filtering logic from #3972 to the frontend, I’ll push a PR with that 👍.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Browser crashes when opening external tool
Solved: Context We have an instance of Canvas on our server. We have an external tool hosted on a remote URL. The external...
Read more >
UITableView Crashes if Data Source Is Updated During ...
I have an app wherein the datasource for a UITableView updates by a background thread from a remote server every 30 seconds. A...
Read more >
Front end freezes on start-up - Mathematica Stack Exchange
Every time I start the Mathematica Front End the Welcome to Wolfram Mathematica screen appears, then freezes and eventually is marked (Not ...
Read more >
How To Fix The "Error Establishing a Database Connection" in ...
The "Error Establishing a Database Connection" error brings your website goes down. Learn how to fix it quickly.
Read more >
How to Fix a Broken Grafana Dashboard with the API
This is a really rare problem and in this case was an instance where the customer had created a variable that referenced itself....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found