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

Pass input-data encoded as base64 #753

Merged
merged 3 commits into from
May 17, 2023
Merged

Pass input-data encoded as base64 #753

merged 3 commits into from
May 17, 2023

Conversation

csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented May 16, 2023

When moving from ad-hoc JSON (de-) serialisation to using Protobuf's JSON utilities, we broke the encoding/decoding of the input-data field. This field is marked as bytes in the schema (I think it could be just a sting but that may be a matter for a different PR), therefore Protobuf expects the field to be base64 encoded. See this StackOverflow post for reference.

In this PR I fix this issue in faasm, and bump the CPP and Python submodules to include similar fixes. The calling logic is replicated, thus the fix needs to be replicated. Hopefully when we actually move faasmcli to a different repo we will end with this replication.

See faasm/cpp#114 and faasm/python#28

@csegarragonz csegarragonz merged commit b911bae into main May 17, 2023
@csegarragonz csegarragonz deleted the fix-input-data branch May 17, 2023 07:40
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

Successfully merging this pull request may close these issues.

None yet

1 participant