Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown error" #184

Open
dawadam opened this issue Jul 2, 2024 · 3 comments
Open

"Unknown error" #184

dawadam opened this issue Jul 2, 2024 · 3 comments

Comments

@dawadam
Copy link

dawadam commented Jul 2, 2024

Hi,
I'm seeing this "Unknown error" message :

throw Error(errorMsg || 'Unknown error');

Can you tell me why ?
It's when i'm calling "getHistoricalRates" method, many times.

@Leo4815162342
Copy link
Owner

@dawadam can you share the code which you're trying to execute?

@WeskerC
Copy link

WeskerC commented Aug 9, 2024

PS G:\data_downloaded\using_dukascopy_node\XAUUSD> npx dukascopy-node -i xauusd -from 2020-01-01 to 2021-01-01 -t tick -f csv -v true -vu "units" -ch true -r 15 -re true -rp 500 --date-format "YYYY-MM-DD HH:mm:ss" -d true
dukascopy-node:cli:version 1.39.0 +0ms
dukascopy-node:cli:nodejs v20.14.0 +0ms
dukascopy-node:cli:os Windows_NT, 10.0.22621 (win32) +0ms
dukascopy-node:cli:config {
dukascopy-node:cli:config input: {
dukascopy-node:cli:config instrument: 'xauusd',
dukascopy-node:cli:config dates: { from: 2020-01-01T00:00:00.000Z, to: 2024-08-09T05:54:14.023Z },
dukascopy-node:cli:config timeframe: 'tick',
dukascopy-node:cli:config priceType: 'bid',
dukascopy-node:cli:config utcOffset: 0,
dukascopy-node:cli:config volumes: true,
dukascopy-node:cli:config volumeUnits: 'units',
dukascopy-node:cli:config ignoreFlats: true,
dukascopy-node:cli:config dir: './download',
dukascopy-node:cli:config silent: false,
dukascopy-node:cli:config format: 'csv',
dukascopy-node:cli:config batchSize: 10,
dukascopy-node:cli:config pauseBetweenBatchesMs: 1000,
dukascopy-node:cli:config useCache: true,
dukascopy-node:cli:config cacheFolderPath: './.dukascopy-cache',
dukascopy-node:cli:config retryCount: 15,
dukascopy-node:cli:config failAfterRetryCount: true,
dukascopy-node:cli:config retryOnEmpty: true,
dukascopy-node:cli:config pauseBetweenRetriesMs: 500,
dukascopy-node:cli:config debug: true,
dukascopy-node:cli:config inline: false,
dukascopy-node:cli:config fileName: '',
dukascopy-node:cli:config dateFormat: 'YYYY-MM-DD HH:mm:ss',
dukascopy-node:cli:config timeZone: ''
dukascopy-node:cli:config },
dukascopy-node:cli:config isValid: true,
dukascopy-node:cli:config validationErrors: []
dukascopy-node:cli:config } +0ms
dukascopy-node:cli:urls Generated 40373 urls +0ms
dukascopy-node:cli:urls [
dukascopy-node:cli:urls 'https://datafeed.dukascopy.com/datafeed/XAUUSD/2020/00/01/00h_ticks.bi5',
...(skip)...
dukascopy-node:cli:urls ... 40273 more items
dukascopy-node:cli:urls ] +0ms

Something went wrong:

Unknown error

@WeskerC
Copy link

WeskerC commented Aug 9, 2024

PS G:\data_downloaded\using_dukascopy_node\XAUUSD> npx dukascopy-node -i xauusd -from 2020-01-01 to 2021-01-01 -t tick -f csv -v true -vu "units" -ch true -r 15 -re true -rp 500 --date-format "YYYY-MM-DD HH:mm:ss" -d true dukascopy-node:cli:version 1.39.0 +0ms dukascopy-node:cli:nodejs v20.14.0 +0ms dukascopy-node:cli:os Windows_NT, 10.0.22621 (win32) +0ms dukascopy-node:cli:config { dukascopy-node:cli:config input: { dukascopy-node:cli:config instrument: 'xauusd', dukascopy-node:cli:config dates: { from: 2020-01-01T00:00:00.000Z, to: 2024-08-09T05:54:14.023Z }, dukascopy-node:cli:config timeframe: 'tick', dukascopy-node:cli:config priceType: 'bid', dukascopy-node:cli:config utcOffset: 0, dukascopy-node:cli:config volumes: true, dukascopy-node:cli:config volumeUnits: 'units', dukascopy-node:cli:config ignoreFlats: true, dukascopy-node:cli:config dir: './download', dukascopy-node:cli:config silent: false, dukascopy-node:cli:config format: 'csv', dukascopy-node:cli:config batchSize: 10, dukascopy-node:cli:config pauseBetweenBatchesMs: 1000, dukascopy-node:cli:config useCache: true, dukascopy-node:cli:config cacheFolderPath: './.dukascopy-cache', dukascopy-node:cli:config retryCount: 15, dukascopy-node:cli:config failAfterRetryCount: true, dukascopy-node:cli:config retryOnEmpty: true, dukascopy-node:cli:config pauseBetweenRetriesMs: 500, dukascopy-node:cli:config debug: true, dukascopy-node:cli:config inline: false, dukascopy-node:cli:config fileName: '', dukascopy-node:cli:config dateFormat: 'YYYY-MM-DD HH:mm:ss', dukascopy-node:cli:config timeZone: '' dukascopy-node:cli:config }, dukascopy-node:cli:config isValid: true, dukascopy-node:cli:config validationErrors: [] dukascopy-node:cli:config } +0ms dukascopy-node:cli:urls Generated 40373 urls +0ms dukascopy-node:cli:urls [ dukascopy-node:cli:urls 'https://datafeed.dukascopy.com/datafeed/XAUUSD/2020/00/01/00h_ticks.bi5', ...(skip)... dukascopy-node:cli:urls ... 40273 more items dukascopy-node:cli:urls ] +0ms

Something went wrong:

Unknown error

@Leo4815162342 Hi Leo, the above codes are the case that I triggered the "Unknown error"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants