dickwolff / Export-To-Ghostfolio

Convert transaction history export from your favorite broker to a format that can be imported in Ghostfolio.
https://hub.docker.com/r/dickwolff/export-to-ghostfolio
Apache License 2.0
63 stars 10 forks source link

Exporting files error #117

Closed antoniopnp closed 1 month ago

antoniopnp commented 1 month ago

Hi, I'm running a new imagem of dickwolff/export-to-ghostfolio:latest in docker and I'm getting an error while processing files from trading212.

I tried with my file and with the sample file and the result is the same.

Log with sample file:

date stream content
2024/10/07 13:39:39 stdout [e] Moving file to output..
2024/10/07 13:39:39 stdout [e] Error: Environment variable GHOSTFOLIO_ACCOUNT_ID not set!
2024/10/07 13:39:39 stdout [e] An error ocurred while processing.
2024/10/07 13:39:39 stdout [i] Determined the file type to be of kind 'trading212'.
2024/10/07 13:39:39 stdout [i] Found trading212-export.csv!
2024/10/07 13:39:39 stdout [e] Moving file to output..
2024/10/07 13:39:39 stdout [e] Error: Environment variable GHOSTFOLIO_ACCOUNT_ID not set!
2024/10/07 13:39:39 stdout [e] An error ocurred while processing.
2024/10/07 13:39:39 stdout [i] Determined the file type to be of kind 'investimental'.
2024/10/07 13:39:39 stdout [i] Found trading212-export.csv@SynoEAStream!

Log with my File:

date stream content
2024/10/07 12:57:48 stdout [e] Moving file to output..
2024/10/07 12:57:48 stdout [e] Error: Environment variable GHOSTFOLIO_ACCOUNT_ID not set!
2024/10/07 12:57:48 stdout [e] An error ocurred while processing.
2024/10/07 12:57:48 stdout [i] Determined the file type to be of kind 'trading212'.
2024/10/07 12:57:48 stdout [i] Found from_2024-03-02_to_2024-10-06_MTcyODMwNDY4NjQzMw.csv!
2024/10/07 12:57:48 stdout [e] Moving file to output..
2024/10/07 12:57:48 stdout [e] Error: Environment variable GHOSTFOLIO_ACCOUNT_ID not set!
2024/10/07 12:57:48 stdout [e] An error ocurred while processing.
2024/10/07 12:57:48 stdout [i] Determined the file type to be of kind 'investimental'.
2024/10/07 12:57:48 stdout [i] Found from_2024-03-02_to_2024-10-06_MTcyODMwNDY4NjQzMw.csv@SynoEAStream!
2024/10/07 12:48:50 stdout [i] Watching /var/tmp/e2g-input (using polling)..
I tried also with degiro sample file: date stream content
2024/10/07 14:24:26 stdout [e] Moving file to output..
2024/10/07 14:24:26 stdout [e] Error: Environment variable GHOSTFOLIO_ACCOUNT_ID not set!
2024/10/07 14:24:26 stdout [e] An error ocurred while processing.
2024/10/07 14:24:26 stdout [i] Determined the file type to be of kind 'degiro'.
2024/10/07 14:24:26 stdout [i] Found degiro-export.csv!
2024/10/07 14:24:26 stdout [e] Moving file to output..
2024/10/07 14:24:26 stdout [e] Error: Environment variable GHOSTFOLIO_ACCOUNT_ID not set!
2024/10/07 14:24:26 stdout [e] An error ocurred while processing.
2024/10/07 14:24:26 stdout [i] Determined the file type to be of kind 'investimental'.
2024/10/07 14:24:26 stdout [i] Found degiro-export.csv@SynoEAStream!

Any idea what is the problem?

dickwolff commented 1 month ago

Thanks for reporting this. It seems you haven't set your Ghostfolio account ID (env var GHOSTFOLIO_ACCOUNT_ID). Could you set that and then try again?

antoniopnp commented 1 month ago

With Account ID env var set it works. Thanks.

I probably did that the last time but I just forgot.