https://supertokens.com/ logo
Golang example crashes with ``interface
w

wdjzr

03/16/2023, 11:59 AM
Golang fiber example crashes with ``interface {} is nil, not []interface {}``
Hello
I am trying to setup the backend integration using the fiber example in the supertokens repo
But when I make an api call to
auth/signin
backend crashes with the mentioned error
Full error log of the crash can be found here:
s

sattvikc

03/16/2023, 12:29 PM
hi, which version of go lang SDK are you using?
0.10.2 right ?
can you share the post payload? seems like formFields is not being passed
w

wdjzr

03/16/2023, 12:35 PM
Yes
I made an empty request, no post data
To test if the backend was communicating with the core correctly
But it should not crash the whole application, correct?
s

sattvikc

03/16/2023, 12:35 PM
plz try passing "{ formFields: [] }"
w

wdjzr

03/16/2023, 12:36 PM
Sure
Okay, now it did not crash and returned 500 with "formFields must be an array"
s

sattvikc

03/16/2023, 12:37 PM
cool
w

wdjzr

03/16/2023, 12:37 PM
Returning to this point, shouldnt this handled and an error returned instead of crashing?
s

sattvikc

03/16/2023, 12:38 PM
you can open an issue on our repo if you want the wrong input to be fixed.
we'll look into it
w

wdjzr

03/16/2023, 12:38 PM
Okay