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

Handle missing Endpoint key on directory refresh #455

Open
geoffxy opened this issue Feb 9, 2024 · 0 comments
Open

Handle missing Endpoint key on directory refresh #455

geoffxy opened this issue Feb 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@geoffxy
Copy link
Member

geoffxy commented Feb 9, 2024

Traceback (most recent call last):                                                               
  File "<frozen runpy>", line 198, in _run_module_as_main                                        
  File "<frozen runpy>", line 88, in _run_code                                                   
  File "/home/geoffxy/projects/brad/src/brad/calibration/measure_load.py", line 292, in <module> 
    main()                                                                                       
  File "/home/geoffxy/projects/brad/src/brad/calibration/measure_load.py", line 149, in main     
    asyncio.run(directory.refresh())                                                             
  File "/home/geoffxy/.pyenv/versions/3.11.3/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)                                                                      
           ^^^^^^^^^^^^^^^^                                                                      
  File "/home/geoffxy/.pyenv/versions/3.11.3/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)                                                   
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                   
  File "/home/geoffxy/.pyenv/versions/3.11.3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()                                                                       
           ^^^^^^^^^^^^^^^                                                                       
  File "/home/geoffxy/projects/brad/src/brad/provisioning/directory.py", line 141, in refresh    
    await self.refresh_impl()                                                                    
  File "/home/geoffxy/projects/brad/src/brad/provisioning/directory.py", line 162, in refresh_impl
    redshift = await self._refresh_redshift()                                                    
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                    
  File "/home/geoffxy/projects/brad/src/brad/provisioning/directory.py", line 261, in _refresh_redshift
    "endpoint_address": cluster["Endpoint"]["Address"],                                          
                        ~~~~~~~^^^^^^^^^^^^                                                      
KeyError: 'Endpoint'                          
@geoffxy geoffxy added the bug Something isn't working label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant