Skip to content

[Python] agent Question  #6713

@SmileLee123

Description

@SmileLee123

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Question

  • What do you want to know?

Bug

ERROR:grpc._channel:Exception iterating requests!
Traceback (most recent call last):
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_channel.py", line 195, in consume_request_iterator
    request = next(request_iterator)
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\skywalking\agent\protocol\grpc.py", line 114, in generator
    ) for span in segment.spans],
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\skywalking\agent\protocol\grpc.py", line 114, in <listcomp>
    ) for span in segment.spans],
AttributeError: 'int' object has no attribute 'value'
2021-04-08 17:21:56.299 | DEBUG    | ycyj_zhongtai.libs.redis_jsonrpc.base_worker:_process_pool:214 - segment_id is dcff4bc0984b11ebb36a4eebbd934baf
Traceback (most recent call last):
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\skywalking\agent\protocol\grpc.py", line 122, in report
    self.traces_reporter.report(generator())
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\skywalking\client\grpc.py", line 58, in report
    self.report_stub.collect(generator)
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_channel.py", line 1011, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "C:\Users\peake\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_channel.py", line 729, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = "Exception iterating requests!"
	debug_error_string = "None"

my code:

     config.init(collector='xxxxx:11800', service='Test')
    config.logging_level = 'DEBUG'
    config.pymongo_trace_parameters = True
    agent.start()

plugins:

_brpop = Redis.brpop
def _sw_brpop(this:Redis, keys, timeout=0):
    context = get_context()
    channel, request = _brpop(this, keys, timeout)
    request_data = json.loads(request)
    with context.new_entry_span(op='RedisBusPull') as span:
        carrier = Carrier()
        logger.debug(request_data['params']['sw8'])
        for item in carrier:
            if item.key in request_data['params']['sw8']:
                item.val = request_data['params']['sw8'][item.key]
        span.extract(carrier)
        span.tag(Tag(key=tags.DbType, val="Redis"))
    return channel, request

request_data['params']['sw8'] is superstratum service transmission data

  • Which version of SkyWalking, OS, and JRE?

    • SkyWalking is 8.3.0
    • Os CentOS Linux release 7.6.1810
  • Which company or project?

  • What happened?
    If possible, provide a way to reproduce the error. e.g. demo application, component version.


Requirement or improvement

  • Please describe your requirements or improvement suggestions.

Metadata

Metadata

Assignees

Labels

pythonPython agent relatedquestionEnd user question and discussion.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions