-
Notifications
You must be signed in to change notification settings - Fork 59
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
Async invocation callback follows 30x redirects but loses data on the way #102
Comments
Hi @tmiklas Thank you for logging this issue. If you can provide step by step instructions and an example of when you ran into this, I'm sure someone could look into it. If we have to spend 1-2 hours getting up to speed and configuring a new function it will take longer and might fall of the radar. Alex |
Method: GET <-- this may be another issue or even THE issue - after redirect this should still be POST, not GET! Headers:
Form/POST parameters: none Raw Body: none |
Thank you for the report. Just to clarify |
When asynchronous function execution completes the data is sent back to callback url. However if that callback URL issues 30x redirect (from http to https or similar), the data seems to be posted to HTTP url, server responds 30x redirect to HTTPS, another POST requests is done to HTTPS url however function output data is missing.
Expected Behaviour
Current Behaviour
Client posts back results, gets 30x redirect from server and follows redirect passing all relevant headers, but does not include data (body) in that second request
Possible Solution
Same as expected behaviour above
Steps to Reproduce (for bugs)
Context
Took a long time to debug and figure out what happens there and why async functions don't return data correctly.
This was caused literally by requestbin offering URL with HTTP when server running requestbin was forcing redirect to HTTPS - found by accident.
Your Environment
faasd v0.9.6 - default install and default docker-compose.yml
The text was updated successfully, but these errors were encountered: