It looks like your join-server does not return the response in the expected format:
If ans.Result.ResultCode != Success is not equal to Success, then it is assumed that the request failed. The error and description is taken from the response body, but if that is empty too then you get the above error.
i found where was my mistake .
Now, i see JoinAccept trame in chirpstack Gateway.
In my device, i find Device address and Network session key in Activation Tab. But Application session key is empty …
Do you have an idea where is the problem ?
in addition, i have an error ==> “get device-session error: object does not exist”