We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid memory address or nil pointer dereference when passing a custom code.
Pass a value to setCustomCode. If this line is commented, verifications are created just fine and the SMS is received.
setCustomCode
client := twilio.NewRestClientWithParams(twilio.ClientParams{ Username: accountSid, Password: authToken, }) params := &verify.CreateVerificationParams{} params.SetCustomCode("867530") params.SetTo(t_int.Phone) params.SetChannel("sms") resp, err := client.VerifyV2.CreateVerification(verificationSid, params) if err != nil { fmt.Println(err.Error()) return c.Status(http.StatusBadRequest).JSON(fiber.Map{ "status": resp.Status, "err": err.Error(), }) } else { return c.Status(http.StatusOK).JSON(fiber.Map{ "status": resp.Status, }) }
Invalid parameter: Code (null) More info: https://www.twilio.com/docs/errors/60200 runtime error: invalid memory address or nil pointer dereference
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Summary
invalid memory address or nil pointer dereference when passing a custom code.
Steps to Reproduce
Pass a value to
setCustomCode
. If this line is commented, verifications are created just fine and the SMS is received.Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: