Hello guys, I have an api that was made over python 3.5 with SQLAlchemy==1.2.10 My api connects to a RDS Aurora with mysql engine 5.7.
In the api i have a get method that when executed return some lines from my database. When i run the api local pointing out to rds every think works fine, but when the i try to execute the same get method deployed into Amazon Ecs, i get the follow error. sqlalchemy.exc.OperationalError sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (2027, 'Malformed packet') [SQL: 'SELECT compra.compra_id AS compra_compra_id, compra.cnpj_cliente AS compra_cnpj_cliente, compra.nome_cliente AS compra_nome_cliente, compra.cnpj_agencia AS compra_cnpj_agencia, compra.nome_agencia AS compra_nome_agencia, compra.contato_atendimento AS compra_contato_atendimento, compra.assistente AS compra_assistente, compra.player AS compra_player, compra.cliente_direto AS compra_cliente_direto, compra.status AS compra_status, compra.tipo AS compra_tipo, compra.dt_criacao AS compra_dt_criacao, compra.dt_atualizacao AS compra_dt_atualizacao \nFROM compra \n LIMIT %s, %s'] [parameters: (0, 50)] (Background on this error at: http://sqlalche.me/e/e3q8) Link to the api: https://globoexpress.cluster.stg.negocios.tvglobo.com.br/compras/api/v1/Order/ I just have one difference between the environments, local o call the get over http and on ecs i call over https. I have attached my requirements.txt Regards -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
Flask==1.0.2 Flask-SQLAlchemy==2.3.1 Flask-Script==2.0.5 Flask-Migrate==2.1.1 SQLAlchemy==1.2.10 mysqlclient==1.3.13 dateutils==0.6.6 mandrill==1.0.57 uwsgi==2.0.14 requests==2.19.0 tvg-flask==0.0.4 flask-dynamo==0.1.2 flask-restplus==0.11.0 marshmallow==2.15.3
