Skip to content

functions can't finish execute when its response "Content-Type" is "text/plain" or "text/html" #16

Description

@karheng

@MartinSahlen Based on the logs, there is response payload. However, the function seems continue running, can't finish execute until encounter "connection error". Thus, can't get the response from the functions URL.

image

fromcloudfn.flask_handlerimporthandle_http_eventfromflaskimportFlask, request, Responseapp=Flask('the-function')
@app.route('/run', methods=['GET'])deftestrun():
returnResponse(str(123456), mimetype='text/plain')
handle_http_event(app)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions