truss icon indicating copy to clipboard operation
truss copied to clipboard

Truss Predict -d error

Open Yitzkak opened this issue 2 years ago • 2 comments

Whenever I write truss predict -d '"String here"' I get this error. ───────────────────────────────────────── Request data must be valid json.

To Reproduce run truss predict -d '"String Here"'

Expected behavior I am supposed to get the string back according to the documentation

Screenshots/Logs Screenshot (16)

Desktop (please complete the following information):

  • OS: Windows
  • Environment versions: Python 3.11
  • Truss version: truss, version 0.7.18

Additional context Add any other context about the problem here.

Yitzkak avatar Nov 26 '23 22:11 Yitzkak

Hi @Yitzkak -- thanks for reporting! I just tried reproducing this, and could not on Mac or Linux -- will try getting ahold of a windows VM to test on.

squidarth avatar Nov 27 '23 02:11 squidarth

Okay. Thanks for the response

On Mon, 27 Nov 2023 at 03:41, Sidharth Shanker @.***> wrote:

Hi @Yitzkak https://github.com/Yitzkak -- thanks for reporting! I just tried reproducing this, and could not on Mac or Linux -- will try getting ahold of a windows VM to test on.

— Reply to this email directly, view it on GitHub https://github.com/basetenlabs/truss/issues/750#issuecomment-1827039689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLRZRDUM64FCP5IEVGQJTDYGP4VPAVCNFSM6AAAAAA73FKSOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRXGAZTSNRYHE . You are receiving this because you were mentioned.Message ID: @.***>

Yitzkak avatar Nov 27 '23 03:11 Yitzkak

This could be due to a key mismatch in your model.py predict method. Can you please share that ? Also, it could also be due to parsing issue as windows parses "" & '' quotes weirdly.

lost-particles avatar Sep 11 '25 09:09 lost-particles