team-telnyx / telnyx-dotnet

.NET SDK for the Telnyx API
MIT License
9 stars 9 forks source link

The server committed a protocol violation. Section=ResponseStatusLine #38

Closed samohd closed 3 years ago

samohd commented 3 years ago

I'm just trying to do a basic send SMS via the telnyx v2 API using .net (not telnyx-dotnet - which is way more complex than I need). This works fine with v1 API. But, when I switch to v2, I am getting this error "The server committed a protocol violation. Section=ResponseStatusLine" when I call GetResponse(). I've tried all sorts of things including "ServicePointManager::Expect100Continue = false" which has resolved other errors for other online services. But I can't find a solution for this. Any insight from anyone making use of or having created this project? I'm still poking around the source for this project but still haven't found even the basic network code. :-)

samohd commented 3 years ago

In case anyone stumbles upon this... there was no actual issue with code. v1 uses sms.telnyx.com v2 uses api.telnyx.com. When I realized this, code worked.