Skip to content

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

@karheng

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

from cloudfn.flask_handler import handle_http_event
from flask import Flask, request, Response

app = Flask('the-function')

@app.route('/run', methods=['GET'])
def testrun():
    return Response(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