[Python] Getting 'Catalyst headers are empty' error from my Catalyst Advanced I/O function

Discussão em 'Python' iniciado por Stack, Março 17, 2025.

  1. Stack

    Stack Membro Participativo

    I am using Python Flask in my Zoho Catalyst Advanced I/O function where I initialized Catalyst Python SDK and when I tried testing the function using catalyst serve command I am getting the below error:


    {"error": "CatalystAppError("{'code': 'FATAL ERROR', 'message': 'Catalyst headers are empty'}")"}
    ​

    I am getting the same error even after I deployed my Advanced I/O function to Catalyst Development environment using catalyst deploy command.

    I also attached my function code snippet below for reference:

    import logging
    from flask import Flask, request, make_response, jsonify
    import zcatalyst_sdk


    app = Flask(__name__)


    @app.route("/server/test/", methods=["GET"])
    def initialize():
    catalyst_app = zcatalyst_sdk.initialize(req=request)

    response_data = {
    "status": "success",
    "data": {"Catalyst App Initialized"}
    }

    response = make_response(jsonify(response_data), 200)
    return response

    if __name__ == "__main__":
    app.run(debug=True, port=3000)

    Continue reading...

Compartilhe esta Página