tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

Instance-id #311

Open Ananthu2oo3 opened 1 year ago

Ananthu2oo3 commented 1 year ago

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2464, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2450, in wsgi_app response = self.handle_exception(e) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1867, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functionsrule.endpoint File "/code/server.py", line 241, in home instance_id=boto.utils.get_instance_metadata()['instance-id'] File "/usr/local/lib/python3.8/site-packages/boto/utils.py", line 275, in getitem return super(LazyLoadMetadata, self).getitem(key) KeyError: 'instance-id'

Ananthu2oo3 commented 1 year ago

The name of the key instance-id is wrong I would suggest printing the response and getting the proper key name from it