weiwei-9527 commented on issue #8566:
URL: https://github.com/apache/skywalking/issues/8566#issuecomment-1331614334

   I have a similar problem.
   wsgi.py:
   `import os
   
   from django.core.wsgi import get_wsgi_application
   from skywalking import agent, config
   
   os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'self-healing.settings_prod')
   
   config.init(collector_address='xxxx:12800', service_name='self-healing', 
protocol='http')
   agent.start()
   
   `
   
   start command:
   
   `gunicorn self-healing.wsgi:application -b0.0.0.0:8000 -w1 
--access-logfile=/tmp/access.log`
   
   
   skywalking  web:
   `Traceback:
   Traceback (most recent call last):
     File 
"/root/miniconda3/envs/self-healing/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py",
 line 233, in _get_session
       return self._session_cache
   AttributeError: 'SessionStore' object has no attribute '_session_cache'
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File 
"/root/miniconda3/envs/self-healing/lib/python3.7/site-packages/skywalking/plugins/sw_mysqlclient.py",
 line 70, in execute
       return self._self_cur.execute(query, args)
     File 
"/root/miniconda3/envs/self-healing/lib/python3.7/site-packages/skywalking/plugins/sw_pymysql.py",
 line 49, in _sw_execute
       span.tag(TagDbInstance((this.connection.db or b'').decode('utf-8')))
   AttributeError: 'str' object has no attribute 'decode'`
   
   
   Thanks for your help


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to