ERROR: HTTPError - HTTP Error 403: Forbidden (> eb logs)
See original GitHub issueDescription
Getting ERROR: HTTPError - HTTP Error 403: Forbidden while using
eb logs
Steps to reproduce
Type
eb logs
Observed result
2020-08-23 15:19:38,482 (INFO) eb : Traceback (most recent call last): File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/core/ebrun.py”, line 62, in run_app app.run() File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/cement/core/foundation.py”, line 797, in run return_val = self.controller._dispatch() File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/cement/core/controller.py”, line 472, in _dispatch return func() File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/cement/core/controller.py”, line 478, in _dispatch return func() File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/core/abstractcontroller.py”, line 92, in default self.do_command() File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/controllers/logs.py”, line 65, in do_command self.__get_logs() File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/controllers/logs.py”, line 103, in __get_logs instance_id=self.instance File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/operations/logsops.py”, line 486, in retrieve_beanstalk_logs get_logs(env_name, info_type, do_zip=do_zip, instance_id=instance_id) File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/operations/logsops.py”, line 345, in get_logs _handle_tail_logs(instance_id_list) File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/operations/logsops.py”, line 888, in _handle_tail_logs log_result = utils.get_data_from_url(url) File “/home/ayz/.ebcli-virtual-env/lib/python3.7/site-packages/ebcli/lib/utils.py”, line 263, in get_data_from_url return urllib.request.urlopen(url, timeout=timeout).read() File “/home/ayz/.pyenv/versions/3.7.2/lib/python3.7/urllib/request.py”, line 222, in urlopen return opener.open(url, data, timeout) File “/home/ayz/.pyenv/versions/3.7.2/lib/python3.7/urllib/request.py”, line 531, in open response = meth(req, response) File “/home/ayz/.pyenv/versions/3.7.2/lib/python3.7/urllib/request.py”, line 641, in http_response ‘http’, request, response, code, msg, hdrs) File “/home/ayz/.pyenv/versions/3.7.2/lib/python3.7/urllib/request.py”, line 569, in error return self._call_chain(*args) File “/home/ayz/.pyenv/versions/3.7.2/lib/python3.7/urllib/request.py”, line 503, in _call_chain result = func(*args) File “/home/ayz/.pyenv/versions/3.7.2/lib/python3.7/urllib/request.py”, line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden
2020-08-23 15:19:38,482 (INFO) eb : HTTPError - HTTP Error 403: Forbidden Retrieving logs…
Expected result
Logs are expected
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
DISTRIB_ID=ManjaroLinux DISTRIB_RELEASE=19.0.2 DISTRIB_CODENAME=Kyria DISTRIB_DESCRIPTION=“Manjaro Linux”
- OS: Manjaro
- EBCLI version: EB CLI 3.18.2 (Python 3.7.2)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:13
Top GitHub Comments
@Palakpatel67 I’m not sure if this is the same issue, but when I use specific instance id works well. So
eb logs --instance i-xxxxxxxxx
works buteb logs
returns a 403 forbidden. Witheb logs --verbose
i had this outputHope this helps, thanks
This helps, thanks. Still I’d like to just type “eb logs”.