Skip to content
New issue

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

EOF error response when sending SMS OTP #231

Open
LuPhungMinhHuy opened this issue Feb 29, 2024 · 1 comment
Open

EOF error response when sending SMS OTP #231

LuPhungMinhHuy opened this issue Feb 29, 2024 · 1 comment

Comments

@LuPhungMinhHuy
Copy link

Issue Summary

I received an ambiguous error response below when calling function VerifyV2.CreateVerification

Post "https://verify.twilio.com/v2/Services/xxxxxxx/Verifications/": EOF

Strange thing is it happened very random, like it was poping out once in thousands of success SMS OTP that were sent by my service.

I did a bit of research and maybe this is what happen:
https://stackoverflow.com/questions/28046100/golang-http-concurrent-requests-post-eof

Is there any way to workaround this?

Technical details:

  • twilio-go version: v1.7.0
  • go version: 1.19
@tiwarishubham635
Copy link
Contributor

I think we can add req.Close = true in our client file. What do you think? Infact, if you can try in your local making these changes and see if you are able to make multiple calls or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants