Based on the error message you've provided, this seem to be a connection to your Cloud SQL instances. I'd suggest applying the solutions provided in this public documentation <https://cloud.google.com/sql/docs/mysql/error-messages#aborted-connection>.
On Tuesday, May 25, 2021 at 11:50:47 AM UTC-4 lguill...@gmail.com wrote: > this is my code: > > import pymysql > > self.host = settings.DATABASES['default']['HOST'] > self.user = settings.DATABASES['default']['USER'] > self.password = settings.DATABASES['default']['PASSWORD'] > self.database = settings.DATABASES['default']['NAME'] > try: > > miConexion = pymysql.connect(host=self.host, user=self.user, > password=self.password, db=self.database) > > > except (pymysql.err.OperationalError, pymysql.err.InternalError) as e: > print("OcurriĆ³ un error al conectar: ", e) > self.cur = miConexion.cursor() > > def query(self,sql): > self.cur.execute( sql ) > results = self.cur.fetchall() > return results > > def update(self,sql): > self.cur.execute( sql ) > > and this is the error: > > textPayload: "OcurriĆ³ un error al conectar: (2003, "Can't connect to MySQL > server on '/cloudsql/biohomecenter:us-east1:bhc-mysql' ([Errno -3] > Temporary failure in name resolution)")" > insertId: "60abc8330009350d898bef30" > resource: { > type: "gae_app" > labels: { > zone: "us-east1-5" > module_id: "default" > project_id: "biohomecenter" > version_id: "20210524t084045" > } > } > timestamp: "2021-05-24T15:37:23.603405Z" > labels: { > > clone_id: > "00c61b117ce3c539cd26b2b77c9161849e98247e2f40d2ced01f3d72a2c4e67da30c54c39dfba614b62178b84ffc041f4bb1dc3ca5e1282323e2f29a5d28e935dd" > } > logName: "projects/biohomecenter/logs/stdout" > receiveTimestamp: "2021-05-24T15:37:23.432723577Z" > } > > and this error: > > textPayload: "2021-05-23T17:16:44.150800Z 80 [Note] Aborted connection 80 > to db: 'biosysdb' user: 'biohuser' host: '72.239.178.67' (Got an error > reading communication packets)" > > insertId: > "s=4649ab2241d74a9e84ce5032078e0a06;i=2f3b;b=ab3f337ce25a46029f56253ddbb79bd4;m=1d6d9dde;t=5c3027504c4d1;x=f821a338d0290ab-0-0@a1" > resource: { > type: "cloudsql_database" > labels: { > region: "us-east1" > project_id: "biohomecenter" > database_id: "biohomecenter:bhc-mysql" > } > } > timestamp: "2021-05-23T17:16:44.150993Z" > severity: "INFO" > logName: "projects/biohomecenter/logs/cloudsql.googleapis.com%2Fmysql.err" > receiveTimestamp: "2021-05-23T17:16:44.780950007Z" > } > > please helppp > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/649195dd-f9b5-4287-b2d5-29c5494f8858n%40googlegroups.com.