Unable to Fetch Data from API Container Using Sockets in Perseus Container #317
Labels
A-deployment
Area: deployment
C-bug
Category: bug
tribble-reported
This issue was reported through Tribble.
This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels.
The author described their issue as follows:
I'm currently facing an issue where I'm unable to fetch data from the API container (api) from the Perseus container (front) using sockets.
I'm always greeted with this error:
Interestingly, this operation executes successfully when not running inside a container. Additionally, I was able to test the socket between containers using netcat and confirmed it to be working.
Interestingly, this operation executes successfully when not running inside a container. Additionally, I was able to test the socket between containers using netcat and confirmed it to be working.
In an attempt to isolate the problem, I created a separate crate for testing (hypertest). During these tests, I noticed that introducing timeouts seemed to alleviate the issue. However, I have not used Perseus in this context and I am unsure if this is an appropriate solution or merely a workaround.
Steps to Reproduce:
Here are the steps to reproduce the issue:
You can locate the REST client at https://github.com/afidegnum/SockerTest/blob/main/front/src/httpreq/mod.rs#L127
You can try
request_client
orclient_request
functions.the build_state is located at: https://github.com/afidegnum/SockerTest/blob/main/front/src/templates/latest.rs#L159
Any insights or suggestions would be greatly appreciated. Thank you!
The steps to reproduce this issue are as follows:
A minimum reproducible example is available at https://github.com/afidegnum/SockerTest.
The same issue happens when I use use tokio::net::UnixStream;
Tribble internal data
dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWRlcGxveW1lbnQ=
The text was updated successfully, but these errors were encountered: