Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when calling SkygearChat.getMessages #6

Closed
ghost opened this issue Jun 8, 2016 · 2 comments
Closed

error when calling SkygearChat.getMessages #6

ghost opened this issue Jun 8, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2016

Request:
image
Response:

{
  "error": {
    "name": "UnexpectedError",
    "code": 10000,
    "message": "'result'",
    "info": {
      "trace": "Traceback (most recent call last):\n  File \"/usr/lib/python3.5/site-packages/skygear/transmitter/common.py\", line 39, in wrapper\n    return dict(result=f(self, *args, **kwargs))\n  File \"/usr/lib/python3.5/site-packages/skygear/transmitter/common.py\", line 84, in call_func\n    return self.op(obj, param.get('args', {}))\n  File \"/usr/lib/python3.5/site-packages/skygear/transmitter/common.py\", line 150, in op\n    return func(*args, **kwargs)\n  File \"/usr/src/app/chat_plugin.py\", line 130, in get_messages\n    conversation = _get_conversation(conversation_id)\n  File \"/usr/src/app/chat_plugin.py\", line 239, in _get_conversation\n    if len(response['result']) == 0:\nKeyError: 'result'\n"
    }
  }
}
@ghost
Copy link
Author

ghost commented Jun 8, 2016

and #we are using the latest chat_plugin.py in the cloud, reference:b046f8e

@rickmak
Copy link
Member

rickmak commented Jun 13, 2016

After some investigation, this should be raised due to the wrong app_name and api_key set at the skygear container. I pushed 70aafe0 for making the plugin code respect envvar.

Will push a more complete fix for giving proper error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant