app = Flask(__name__)
@app.route("/", methods=["POST"])
def index():
print("I AM IN INDEX")
print("1")
print(type(request))
print("2")
envelope = request.get_json()
print("3")
var http_request = jsonEncode({
"param1": "abc",
"param2": "xyz"
});
var uri = 'https://service-pphjhss-ez.a.run.app';
final res = await http.post(
Uri.parse(uri),
headers: {'Content-Type': 'application/json'},
body: http_request);
export URL=https://service-pphjhss-ez.a.run.app
curl -X POST -H "content-type: application/json" \
-d '{
"param1": "abc",
"param2": "xyz"
)' -w "\n" $URL
@magenti same exact issue here. Did you solve it?
I am also facing the same error, did you fix it?