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

Getting null in exceptions when worker failed #2371

Closed
Zibran1999 opened this issue Dec 15, 2023 · 2 comments
Closed

Getting null in exceptions when worker failed #2371

Zibran1999 opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels
P1 High priority issue type:bug Something isn't working

Comments

@Zibran1999
Copy link

Describe the bug
When a worker fails, wants to get an exception message but gets null.

Component
Fhir SyncWorker

To Reproduce
Steps to reproduce the behavior:

  1. Pass wrong token while execute worker
  2. run the worker
  3. check Failed SyncJobStatus
  4. See error

Expected behavior
Once a worker failed should get exceptions

Additional context
getting this from FhirSyncWorker:
Received result from worker Failed(exceptions=[ResourceSyncException(resourceType=List, exception=retrofit2.HttpException: HTTP 500 Server Error), ResourceSyncException(resourceType=Patient, exception=retrofit2.HttpException: HTTP 500 Server Error), ResourceSyncException(resourceType=Questionnaire, exception=retrofit2.HttpException: HTTP 500 Server Error)]) and sending output Data {StateType : com.google.android.fhir.sync.SyncJobStatus$Failed, State : {"timestamp":"2023-12-15T11:40:32.5007+05:30"}, }

while observing getting this:
Exceptions: Failed(exceptions=null)

@Zibran1999
Copy link
Author

@aditya-07 aditya-07 self-assigned this Dec 21, 2023
@fredhersch fredhersch added type:bug Something isn't working P1 High priority issue labels Feb 7, 2024
@fredhersch fredhersch moved this from New to Backlog in Android FHIR SDK Feb 7, 2024
@jingtang10
Copy link
Collaborator

closing in favour of #1654

@github-project-automation github-project-automation bot moved this from Backlog to Complete in Android FHIR SDK Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority issue type:bug Something isn't working
Projects
Status: Complete
Development

No branches or pull requests

4 participants