threefoldtech / tfchain_graphql

Graphql for TFchain
Apache License 2.0
2 stars 3 forks source link

Bug: init-countries script some times fails to fetch countires or cities #186

Open sameh-farouk opened 4 months ago

sameh-farouk commented 4 months ago

The script shouldn't exist with a 0 status code when it fails. also, it is crucial to log the error. Starting the processor without proper initialization of the geo data is not ideal. the data will be missing and the processor would need to be resync again. The script code requires some refactoring to improve error handling and logging.