HTTP request data truncated

Using HttpClient.h I run

 String s ;
 request.hostname = "api.weatherbit.io" ;
   request.port = 80;
   request.path = "/v2.0/forecast/daily?city=****&days=2&key=********" ;
    http.get(request, response, headers);
    s = response.body ;

This generates a response of 1550 bytes (as counted by a curl request). But when the above code runs on the Photon, I only get 356 bytes and it’s cut off in the middle of a word. The HttpClient buffer is 1024 bytes. Why is it cutting out early?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.