-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Handle base64 encoding #784
Conversation
thank you @cmuto09 ! could you provide a full integration test case as well so I could understand what the plugin does not support at this time? like a I also want to make sure that yet another option is really needed to support this. (I'm in the middle of removing useless options) |
Hey @dnalborczyk, no problem! Just to clarify- you want me to add an example of a As for the option question, totally agreed. I was trying to figure out if all the encoding should happen behind the scenes or whether an option was necessary. My current deploy configuration includes this:
so it was easy for me to pass that as a variable into the option, but if that set of types suffice then I could change |
yeah, that would be great. something like this, or similar, if you could: nothing too complicated. just the minimum what's needed to outline usage and expectations. if not, no problem, at least something manually I could look at, to better understand what's needed.
I probably have a better answer to your question once I see your use case. |
@dnalborczyk great, can do! I'm gonna finish up working on some pesky issues with my other PR (didn't mean to link) first then I'll add my use case |
@dnalborczyk added a basic use case that decodes a base64 encoded image, fakes some processing, and returns the processed image. The part that failed in my actual code was the |
@cmuto09 thanks for the test, I got it running! couple observations: Also one image test upload caused an endless? loop, or it wasn't processing at all, not sure. I think that's a python issue from the other PR. |
Hey @dnalborczyk- sorry for the bad python- it was such a simple script that I didn't end up running it, turns out I wrote pseudocode. It is Happy to take a look at the infinitely hanging image to see if it was an issue with not recognizing JSON in the response body (though the symptom of that issue was getting the log Let me know how I can be helpful! |
b29df3c
to
e165ad7
Compare
826a135
to
d0695ce
Compare
Hey all. I'm hoping to use this PR. Any idea when it will get merged? |
Looks like all tests passing, and just needing conflicts resolved. Any chance this could get done and released soon? Really needing this one. |
Also looking to get this merged |
@cmuto09 @dnalborczyk I've been dealing with this issue and before finding this PR, I came up to a solution that is very similar. But instead of adding a new option to You can take a look at my initial draft here: master...gabmontes:binary-media-types This is an awesome project! Hope we can have this implemented/merged soon and let me know if/how I can help for this to happen. |
2 yo PR, closing sorry, please feel free to reopen |
Re-raising this as it turns out latest versions did not include a fix for the request encoding issue that was causing #464.
This is the same general concept as PR #743 that I closed, but I pulled the other issue in that code into another PR so that this could stay focused on mimicking API Gateway's binary support, including providing
isBase64Encoded
with the event.I bubbled the definition of base64 encoded content types up to the serverless config, but I'm not sure that's the best way. The intent was to make an easy interface with plugins like serverless-apigw-binary, but definitely open to other ways of handling it!