golemfactory / yapapi

Python high-level API for Golem.
https://yapapi.readthedocs.io/en/stable/
GNU Lesser General Public License v3.0
48 stars 23 forks source link

[research] Prepare example to reproduce local HTTP proxy missing response content #1092

Open shadeofblue opened 1 year ago

shadeofblue commented 1 year ago

While working on the GasTracker app, it was found out that sometimes, the returned API responses were incomplete.

The route was:

browser -> nginx on the front-end -> back-end

The content was okay when the browser accessed the back-end directly.

The suggestion is that the particulars of the nginx configuration on the front-end node (chunked encoding?) caused some trouble.

Todo:

shadeofblue commented 1 year ago

while working on the GasTracker app, it was found out that sometimes, the returned API responses were incomplete...

the route was:

browser -> nginx on the front-end -> back-end

the content was okay when the browser accessed the back-end directly

the suggestion is that the particulars of the nginx configuration on the front-end node (chunked encoding?) caused some trouble

VanDavv commented 1 year ago

@shadeofblue please provide a context for what it means the response were incomplete - whether it had it's content stripped, invalid response returned, request failed with status code 4xx or 5xx or we just saw the page is not responding

shadeofblue commented 1 year ago

@VanDavv unfortunately, I'm unsure now what the exact status was -> I believe the browser was just waiting for the full response indefinitely but don't remember now