Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket Closure error from https://sandbox-api.va.gov/services_user_content/vba_documents/... #168

Open
4 tasks
jginnow opened this issue Jul 9, 2020 · 0 comments

Comments

@jginnow
Copy link

jginnow commented Jul 9, 2020

VA Lighthouse API Bug Report

⚠️ Please read before submitting: As this is a public forum, please do not include any sensitive information (such as your VA API OAuth Client ID, VA API OAuth Client Secret, VA API key, Name, Address, Phone Number, Social Security Number, Medical Record Number, etc). For test apps, please make sure you are using your registered redirect URL, not the URL provided in the example.

APIs affected (if applicable)

Benefits Intake API: /services_user_content/vba_documents..

API version (if applicable)

1.0.0

What I expected to happen

  1. PUT multipart request to /services_user_content/vba_documents..
  2. Receive 200 response

What actually happened

  1. PUT multipart request to /services_user_content/vba_documents..
  2. Abrupt socket error
Caused by: org.springframework.web.client.ResourceAccessException: I/O error on PUT request for "https://sandbox-api.va.gov/services_user_content/vba_documents/cb4b6b6b-1b27-4e88-9b94-8471a343ceaf": Socket is closed; nested exception is java.net.SocketException: Socket is closed
        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:748) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:674) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:583) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        at com.vwpo.widgetclaimssubmissionservice.service.impl.BenefitsIntakeProxyServiceImpl.proxyPostUpload(BenefitsIntakeProxyServiceImpl.java:134) ~[classes!/:0.0.1-SNAPSHOT]
        ... 55 common frames omitted
Caused by: java.net.SocketException: Socket is closed
        at java.base/sun.security.ssl.SSLSocketImpl.getInputStream(SSLSocketImpl.java:688) ~[na:na]
        at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:684) ~[na:na]
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1610) ~[na:na]
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) ~[na:na]
        at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) ~[na:na]
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334) ~[na:na]
        at org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode(SimpleClientHttpResponse.java:55) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        at org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:64) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:770) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:740) ~[spring-web-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
        ... 58 common frames omitted

NOTE: Request Params are not caught by our logger here

Severity of the issue

  • [x ] High severity: Blocking work

  • Medium severity: Not blocking work, but needs attention

  • Low severity: Needs attention in a timely manner

  • I am unable to use the API

  • [x ] I was able to use the API, but am not getting the results I expected

  • I was able to workaround the issue

Steps to reproduce

Unfortunately, this issue is intermittent and only started appearing today (7/9)
Generally speaking, however.

  1. POST to https://sandbox-api.va.gov/services/vba_documents/v1/uploads
  2. Receive a URL in the 'Location' header of the step 1 response
  3. PUT a multiple part document to the URL provided in step 2
  4. Intermittently receive a 'Socket Closed' error before receiving any useful response information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant