You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/06/15 03:51:13 UTC

[GitHub] [skywalking] chestarss opened a new issue #4925: skywalking-python not working for requests lib

chestarss opened a new issue #4925:
URL: https://github.com/apache/skywalking/issues/4925


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [x] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   Skywalking server 8.0
   skywalking-python make install by master branch with HEAD/3892cab9d5d2c03
   
   
   - Which company or project?
   
   - What happen?
   ```python
   from skywalking import agent, config
   import requests
   
   config.init(collector='trace.domain.name:11800', service='test')
   
   agent.start()
   url = 'http://127.0.0.1:8000/taskdetail/?task_id=328'
   resp = requests.get(url)
   
   ```
   
   ```python
   Traceback (most recent call last):
     File "test.py", line 8, in <module>
       resp = requests.get(url)
     File "/home/admin/.virtualenvs/opssaas/lib/python3.6/site-packages/requests/api.py", line 70, in get
       return request('get', url, params=params, **kwargs)
     File "/home/admin/.virtualenvs/opssaas/lib/python3.6/site-packages/requests/api.py", line 56, in request
       return session.request(method=method, url=url, **kwargs)
     File "/home/admin/git/skywalking-python/skywalking/plugins/sw_requests/__init__.py", line 46, in _sw_request
       with context.new_exit_span(op=url_param.path or "/", peer=url_param.netloc, carrier=carrier) as span:
     File "/home/admin/git/skywalking-python/skywalking/trace/context/__init__.py", line 75, in new_exit_span
       span.inject(carrier=carrier)
     File "/home/admin/git/skywalking-python/skywalking/trace/span/__init__.py", line 209, in inject
       carrier.endpoint = self.context.spans[0].op
   IndexError: list index out of range
   
   ```
   
   
   
   ___
   ### Requirement or improvement
   - Please describe about your requirements or improvement suggestions.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 closed issue #4925: skywalking-python not working for requests lib

Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #4925:
URL: https://github.com/apache/skywalking/issues/4925


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 commented on issue #4925: skywalking-python not working for requests lib

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #4925:
URL: https://github.com/apache/skywalking/issues/4925#issuecomment-643976338


   Should be fixed by https://github.com/apache/skywalking-python/pull/14
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org