Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Check if an unsupported data type is queried, make sure the error message is understandable #231

Closed
royuen opened this issue Nov 14, 2016 · 2 comments
Assignees

Comments

@royuen
Copy link
Contributor

royuen commented Nov 14, 2016

  • JS SDK
  • iOS SDK
  • Android SDK
@cheungpat
Copy link
Contributor

cheungpat commented Nov 17, 2016

The following error is returned from skygear when the database contains a column with the type money:

{
  "error": {
    "name": "UnexpectedError",
    "code": 10000,
    "message": "received unknown data type = money for column = money"
  }
}

This is what the user will see:

screen shot 2016-11-17 at 2 23 17 pm

@royuen
Copy link
Contributor Author

royuen commented Nov 21, 2016

  • If the column is not supported, the record should still be returned, and that column will have a specific json notation to specify this is unsupported and thus there is no value.

cheungpat added a commit to cheungpat/skygear-server that referenced this issue Nov 22, 2016
This is achieved by introducing a new skydb type called Unknown, which
will be passed to client when the server sees a column with an
unrecognized data type.

Previous behavior will result in skygear server throwing an error when
it sees a column with unrecognized data type.

refs SkygearIO#231
cheungpat added a commit to cheungpat/skygear-SDK-iOS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-iOS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-JS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-iOS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-Android that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-JS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-server that referenced this issue Nov 22, 2016
This is achieved by introducing a new skydb type called Unknown, which
will be passed to client when the server sees a column with an
unrecognized data type.

Previous behavior will result in skygear server throwing an error when
it sees a column with unrecognized data type.

refs SkygearIO#231
cheungpat added a commit to cheungpat/skygear-SDK-iOS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-iOS that referenced this issue Nov 22, 2016
cheungpat added a commit to cheungpat/skygear-SDK-iOS that referenced this issue Nov 22, 2016
rickmak pushed a commit that referenced this issue Nov 23, 2016
This is achieved by introducing a new skydb type called Unknown, which
will be passed to client when the server sees a column with an
unrecognized data type.

Previous behavior will result in skygear server throwing an error when
it sees a column with unrecognized data type.

refs #231
rickmak pushed a commit to SkygearIO/skygear-SDK-JS that referenced this issue Nov 23, 2016
rickmak pushed a commit to SkygearIO/skygear-SDK-iOS that referenced this issue Nov 23, 2016
rickmak pushed a commit to SkygearIO/skygear-SDK-Android that referenced this issue Nov 23, 2016
cheungpat added a commit to cheungpat/py-skygear that referenced this issue Nov 28, 2016
cheungpat added a commit to cheungpat/py-skygear that referenced this issue Nov 28, 2016
rickmak pushed a commit to SkygearIO/py-skygear that referenced this issue Nov 29, 2016
@rickmak rickmak closed this as completed Dec 5, 2016
@rickmak rickmak removed the In Review label Dec 5, 2016
seventhmoon pushed a commit to astri-isns/skygear-SDK-Android that referenced this issue Feb 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants