OpenMined / syft.js

The official Syft worker for Web and Node, built in Javascript
Apache License 2.0
147 stars 55 forks source link

Problem receiving a plan in Syft.js #245

Open michaelhuber1937 opened 3 years ago

michaelhuber1937 commented 3 years ago

I am currenty trying to integrate Syft.js into my project. Currently I have reached the point where I can connect to a PyGrid-Domain, authenticate, retrieve a model but what is not working: I can't receive a plan.

Sniffing in the developer-tools of Firefox tells me that Syft.js is trying to receive the plan via HTTP-GET-Request:

http://localhost:5000/model-centric/get-plan?worker_id=e1077833-24e9-4a0f-b6d9-011a444edf2e&request_key=d7c6c72d58ca87dd3cc60bdeee52e04cc397286d6eb176f0327f9294ee2e3f90&plan_id=27&receive_operations_as=tfjs

The last parameter "receive_operations=tfjs" is the problem, because I receive an empty-file of 0 bytes. Changing the parameter to "receive_operations=list" gives me valid content.

Whats the problem here? Do I need to install something specific server-side?

Thanks!

cereallarceny commented 3 years ago

Hey Michael, this is a support question. Please post it in Slack in our

support channel. We don’t take questions here. :)

On Thu, Apr 15, 2021 at 3:18 PM michaelhuber1937 @.***> wrote:

I am currenty trying to integrate Syft.js into my project. Currently I have reached the point where I can connect to a PyGrid-Domain, authenticate, retrieve a model but what is not working: I can't receive a plan.

Sniffing in the developer-tools of Firefox tells me that Syft.js is trying to receive the plan via HTTP-GET-Request:

http://localhost:5000/model-centric/get-plan?worker_id=e1077833-24e9-4a0f-b6d9-011a444edf2e&request_key=d7c6c72d58ca87dd3cc60bdeee52e04cc397286d6eb176f0327f9294ee2e3f90&plan_id=27&receive_operations_as=tfjs

The last parameter "receive_operations=tfjs" is the problem, because I receive an empty-file of 0 bytes. Changing the parameter to "receive_operations=list" gives me valid content.

Whats the problem here? Do I need to install something specific server-side?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OpenMined/syft.js/issues/245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ44CW4YHIIVI3DPX2WNQ3TI3YR5ANCNFSM427TDSLQ .