QuantConnect / QuantConnect/Lean
Notify Missing Data Source (404 Error)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 21.7k
- Forks
- 5.3k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 34
Description
Expected Behavior
The logs contain information that the data source doesn't have data:
20260205 17:43:50.638 ERROR:: Error downloading custom data source file, skipped: RemoteFile: Csv https://data.nasdaq.com/api/v3/datatables/WGC/GOLD_DAILY_USD.csv?api_key=<...> Error: The reader was empty for source: $https://data.nasdaq.com/api/v3/datatables/WGC/GOLD_DAILY_USD.csv?api_key=<...>
Actual Behavior
Nothing is displayed
Potential Solution
This message:
20260205 17:43:50.638 ERROR:: Error downloading custom data source file, skipped: RemoteFile: Csv https://data.nasdaq.com/api/v3/datatables/WGC/GOLD_DAILY_USD.csv?api_key=<...> Error: The reader was empty for source: $https://data.nasdaq.com/api/v3/datatables/WGC/GOLD_DAILY_USD.csv?api_key=<...>
is only available locally to not show API keys. We should pass this message to the user
Code to reproduce
class GoldMarketTimingAlgorithm(QCAlgorithm):
def initialize(self):
self.set_start_date(2010, 1, 1)
self._gold = self.add_data(NasdaqDataLink, "WGC/GOLD_DAILY_USD", Resolution.DAILY, TimeZones.UTC, True).symbol
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the custom data source download path exercised by the GoldMarketTimingAlgorithm reproduction and trace how an empty reader or 404 is surfaced. The change is complete when the user receives the missing-data message while the API key remains hidden; the payload names no specific files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, python
- Domain
- backend, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100