在小程序官方ide没有问题,在真机出问题了
云引擎报错如下
STDERR web1 23:27:58
user = leancloud.User.become(session_token)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/gevent/pywsgi.py", line 935, in handle_one_response
STDERR web1 23:27:58
self.run_application()
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/geventwebsocket/handler.py", line 87, in run_application
STDERR web1 23:27:58
return super(WebSocketHandler, self).run_application()
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/gevent/pywsgi.py", line 908, in run_application
STDERR web1 23:27:58
self.result = self.application(self.environ, self.start_response)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/engine/__init__.py", line 75, in call
STDERR web1 23:27:58
return self.cloud_app(environ, start_response)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application
STDERR web1 23:27:58
return ClosingIterator(app(environ, start_response), self.cleanup)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/engine/cors.py", line 59, in call
STDERR web1 23:27:58
return self.app(environ, cors_start_response)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/engine/authorization.py", line 48, in call
STDERR web1 23:27:58
return self.app(environ, start_response)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/engine/leanengine.py", line 78, in call
STDERR web1 23:27:58
self.process_session(environ)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/engine/leanengine.py", line 92, in process_session
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/user.py", line 77, in become
STDERR web1 23:27:58
response = client.get('/users/me', params={'session_token': session_token})
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/client.py", line 96, in new_func
STDERR web1 23:27:58
return func(headers=headers, *args, **kwargs)
STDERR web1 23:27:58
File "/opt/pyenv/versions/2.7/lib/python2.7/site-packages/leancloud/client.py", line 161, in new_func
STDERR web1 23:27:58
raise leancloud.LeanCloudError(content.get('code', 1), content.get('error', 'Unknown Error'))
STDERR web1 23:27:58
LeanCloudError: LeanCloudError: [211] Could not find user.
STDERR web1 23:27:58
Fri Apr 6 10:27:58 2018 {'REMOTE_PORT': '39072', 'HTTP_HOST': 'wfdolibf.engine.lncld.net', 'REMOTE_ADDR': '::ffff:10.10.235.8', (hidden keys: 33)} failed with LeanCloudError
ide报错如下