Skip to content

Conversation

@Parthib
Copy link
Contributor

@Parthib Parthib commented Mar 16, 2022

Summary

We want the backend to respond with errors based on the version metadata we pass to it. This change just allows for the version information to be passed along to the backend without harming how setup.py works.

Note that I followed https://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package to get this working.

Testing

Logged the version information in the backend to ensure that the version metadata was being passed to it as expected.

@Parthib Parthib requested a review from whoseoyster March 16, 2022 19:17
@linear
Copy link

linear bot commented Mar 16, 2022

UNB-1376 When there's an argument mismatch, return a python SDK version error

Instead of

UnboxInvalidRequest: <Response [400]> must include trainSampleLabelColumnName 

we should say:

UnboxVersionNotSupported: <Response [505]> please use unboxapi>= 0.0.8. 

Copy link
Contributor

@whoseoyster whoseoyster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@whoseoyster whoseoyster merged commit ebe1396 into main Mar 17, 2022
@whoseoyster whoseoyster deleted the ClientSDKError branch March 17, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants