dpaulat / supercell-wx

Supercell Wx is a free, open source advanced weather radar viewer.
https://supercell-wx.rtfd.io
MIT License
85 stars 14 forks source link

Cannot retrieve files when AWS credentials file present. #201

Closed masterj1337 closed 1 month ago

masterj1337 commented 1 month ago

Weather radar data cannot be loaded when an AWS credentials file is present. I use a credentials file for aws-cdk which contains an account token, when using boto3/aws-cli/cdk, it will implicitly use this token unless otherwise specified. Took me a bit to figure out why radar data wasn't loading, but I deleted the file and radar data popped right up. It's a pretty niche issue, but documenting it in case it helps someone else.


[2024-05-07 22:36:51.210] [39560] [debug] [scwx::qt::map::radar_product_layer] Initialize()
[2024-05-07 22:36:51.210] [39560] [debug] [scwx::qt::map::radar_product_layer] UpdateSweep()
[2024-05-07 22:36:51.210] [39560] [debug] [scwx::qt::map::radar_product_layer] Vertices buffered in 0.000001s
[2024-05-07 22:36:51.211] [39560] [debug] [scwx::qt::map::radar_product_layer] Data moments buffered in 0.000002s
[2024-05-07 22:36:51.211] [39560] [debug] [scwx::qt::map::radar_product_layer] UpdateColorTable()
[2024-05-07 22:36:51.211] [39560] [debug] [scwx::qt::map::overlay_product_layer] Deinitialize()
[2024-05-07 22:36:51.211] [39560] [debug] [scwx::qt::map::overlay_product_layer] Initialize()
[2024-05-07 22:36:51.211] [39560] [debug] [scwx::qt::map::overlay_product_layer] Update Storm Tracking Information
[2024-05-07 22:36:51.211] [39560] [debug] [scwx::qt::map::placefile_layer] Deinitialize()
[2024-05-07 22:36:51.212] [39560] [debug] [scwx::qt::map::placefile_layer] Initialize()
[2024-05-07 22:36:51.212] [39560] [debug] [scwx::qt::map::radar_site_layer] Deinitialize()
[2024-05-07 22:36:51.212] [39560] [debug] [scwx::qt::map::radar_site_layer] Initialize()
[2024-05-07 22:36:51.212] [39560] [debug] [scwx::qt::map::color_table_layer] Deinitialize()
[2024-05-07 22:36:51.212] [39560] [debug] [scwx::qt::map::color_table_layer] Initialize()
[2024-05-07 22:36:51.309] [45436] [warning] [scwx::provider::aws_nexrad_data_provider] Could not list objects: Unable to parse ExceptionName: InvalidToken Message: The provided token is malformed or otherwise invalid.
[2024-05-07 22:36:51.415] [45436] [warning] [scwx::provider::aws_nexrad_data_provider] Could not list objects: Unable to parse ExceptionName: InvalidToken Message: The provided token is malformed or otherwise invalid.
[2024-05-07 22:36:51.415] [45436] [info] [scwx::qt::manager::radar_product_manager] [KILN, L2] No data found
[2024-05-07 22:36:51.415] [45436] [debug] [scwx::qt::manager::radar_product_manager] [KILN, L2] Scheduled refresh in 02:00
dpaulat commented 1 month ago

I reproduced the issue by setting up an AWS credentials file using aws configure and sample access keys found here: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html

I believe I have corrected the issue in the linked pull request. Are you able to verify the fix when the build completes? The build usually completes in ~1-1.5 hours (Windows appears to be struggling, I'll kick it off again in the morning). Thank you!