-
Greetings, I'm writing an application that has to query a "/token" endpoint of another application running on my machine and listening on port 8080. This is how I'm constructing the request: let mut request_body = HashMap::new();
request_body.insert("client_id", "123");
request_body.insert("redirect_uri", "http://localhost:16515");
request_body.insert("grant_type", "authorization_code");
request_body.insert("code", code);
request_body.insert("code_verifier", code_verifier);
let request = self.client.post(token_endpoint)
.header("Shib-Spoof-Check", &self.spoof_check_secret)
.header(self.uid_field_name.clone(), uid)
.json(&request_body);
let response=request.send().await; Unfortunately, I'm getting the following error:
To investigate this issue, I listened to my machine's loopback interface using Wireshark, you can find the whole capture inside GTP95 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I may have interpreted this the wrong way, it's likely that the client is acknowledging the server's intention to close the connection, although I wasn't able to find a FIN packet sent by the server. However, since I'm first querying a different endpoint and then the |
Beta Was this translation helpful? Give feedback.
-
Solved by retying a few times in a loop. |
Beta Was this translation helpful? Give feedback.
Solved by retying a few times in a loop.