nmattisson/HttpClient

response codes not working all the time

Opened this issue · 2 comments

Hi,
Great library! I'm noticing that the parsing of the response codes doesn't always work for me. When I get a 200 , it seems to work fine. However when I get a 201 response code, I see the following output:

Application> Start of Loop.
Application> Response status: -1
Application> HTTP Response Body:
Waiting until next time

This is interesting because I can see that my data is actually being sent to my API fine. The status codes just aren't being parsed for some reason. In your inline comments you mention that you are using a non-elegant way of figuring out the status codes. I'm actually considering contributing, if you are open to contributions. I wanted to bring the issue to your attention first though. Thanks again for this great library.

Hi,
I just merged commit 988a481 from @Undergrid which influences how status codes are parsed. Can you see if the problem persists with the new code?

Hi,
Sorry for the late reply. I am using build.particle.io to write code for a
particle.io device. It shows HTTP Client 0.0.5, I don't see anything in
your releases folder, so I wanted to ask is 0.0.5 was the version that had
the update you mentioned in your previous email ? Thanks!

On Tue, Jul 26, 2016 at 12:44 AM, Nils Mattisson notifications@github.com
wrote:

Hi,
I just merged commit 988a481
988a481
from @Undergrid https://github.com/Undergrid which influences how
status codes are parsed. Can you see if the problem persists with the new
code?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#31 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJqdJxDZ45IqSQDl1DktnlburUeyBKygks5qZbrsgaJpZM4JUwtQ
.