OpenMined / KotlinSyft

The official Syft worker for secure on-device machine learning
https://www.openmined.org
Apache License 2.0
85 stars 28 forks source link

"Key status is missing in the map" error in demo-app #283

Open aghia98 opened 3 years ago

aghia98 commented 3 years ago

Description

When launching the demo app with pygrid server hosting the included example (create-plan), a message is displayed: "There was an error. org.openmined.syft.execution.JobErrorThrowable$ExternalException: Key status is missing in the map". After debugging using Pygrid server log, it appears the error occurs after " POST /model-centric/cycle-request HTTP/1.1" request.

How to Reproduce

  1. Download Pygrid: https://github.com/OpenMined/PyGrid
  2. Execute example/model-centric/Create-plan (without the optional Authentication part)
  3. Correct one issue in the demo-app to avoid HTTP 401 UNAUTHORIZED (see here: https://github.com/OpenMined/KotlinSyft/issues/282)
  4. Execute the demo-app with Emulator
  5. See the error

Expected Behavior

Training plan is downloaded by the emulated device

Screenshots

Screen of the error message: ibb.co/R6CF81K Screen of the pygrid server log: ibb.co/n6g5Nsg

System Information

aghia98 commented 3 years ago

by the way, this error seems to appear only on "foreground" mode

vkkhare commented 3 years ago

if the error occurs only in forground mode, the error might be coming from https client. Can you run the android debugger and let me know what request is being sent. I will check on my end as well

yuechaor commented 3 years ago

I have the same issue