开发者社区 > 云原生 > Serverless > 正文

这个错误是什么呢?

这个错误是什么呢?

提问68.png

提问69.png

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

ponse = self.full_dispatch_request() File "/code/flask/app.py", line 1822, in full_dispatch_request rv = self.handle_user_exception(e) File "/code/flask/app.py", line 1820, in full_dispatch_request rv = self.dispatch_request() File "/code/flask/app.py", line 1796, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/code/index.py", line 420, in index if adj.first(): File "/code/sqlalchemy/orm/query.py", line 2824, in first return self.limit(1)._iter().first() File "/code/sqlalchemy/orm/query.py", line 2916, in _iter result = self.session.execute( File "/code/sqlalchemy/orm/session.py", line 1713, in execute conn = self._connection_for_bind(bind) File "/code/sqlalchemy/orm/session.py", line 1552, in _connection_for_bind return self._transaction._connection_for_bind( File "/code/sqlalchemy/orm/session.py", line 747, in _connection_for_bind conn = bind.connect() File "/code/sqlalchemy/engine/base.py", line 3315, in connect return self._connection_cls(self, close_with_result=close_with_result) File "/code/sqlalchemy/engine/base.py", line 96, in init else engine.raw_connection() File "/code/sqlalchemy/engine/base.py", line 3394, in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) File "/code/sqlalchemy/engine/base.py", line 3364, in _wrap_pool_connect Connection.handle_dbapi_exception_noconnection( File "/code/sqlalchemy/engine/base.py", line 2198, in handle_dbapi_exception_noconnection util.raise( File "/code/sqlalchemy/util/compat.py", line 211, in raise raise exception File "/code/sqlalchemy/engine/base.py", line 3361, in _wrap_pool_connect return fn() File "/code/sqlalchemy/pool/base.py", line 327, in connect return _ConnectionFairy._checkout(self) File "/code/sqlalchemy/pool/base.py", line 894, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/code/sqlalchemy/pool/base.py", line 493, in checkout rec = pool._do_get() File "/code/sqlalchemy/pool/impl.py", line 146, in do_get self.dec_overflow() File "/code/sqlalchemy/util/langhelpers.py", line 70, in exit compat.raise( File "/code/sqlalchemy/util/compat.py", line 211, in raise raise exception File "/code/sqlalchemy/pool/impl.py", line 143, in _do_get return self._create_connection() File "/code/sqlalchemy/pool/base.py", line 273, in _create_connection return _ConnectionRecord(self) File "/code/sqlalchemy/pool/base.py", line 388, in init self.__connect() File "/code/sqlalchemy/pool/base.py", line 691, in connect pool.logger.debug("Error on connect(): %s", e) File "/code/sqlalchemy/util/langhelpers.py", line 70, in exit compat.raise( File "/code/sqlalchemy/util/compat.py", line 211, in raise raise exception File "/code/sqlalchemy/pool/base.py", line 686, in __connect self.dbapi_connection = connection = pool._invoke_creator(self) File "/code/sqlalchemy/engine/create.py", line 578, in connect return dialect.connect(*cargs, **cparams) File "/code/sqlalchemy/engine/default.py", line 598, in connect return self.dbapi.connect(*cargs, **cparams) File "/code/pymysql/connections.py", line 353, in init self.connect() File "/code/pymysql/connections.py", line 633, in connect self._request_authentication() File "/code/pymysql/connections.py", line 907, in _request_authentication auth_packet = self._read_packet() File "/code/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/code/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/code/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, "Access denied for user 'root'@'100.120.206.76' (using password: YES)") (Background on this error at: https://sqlalche.me/e/14/e3q8)FC Invoke End RequestId: 1-641fef06-699a4d4aaccf86bd78632658

展开
收起
芬奇福贵 2023-03-27 09:18:37 398 0
1 条回答
写回答
取消 提交回答
  • 看样子是数据库连接问题,先用外网调试,再看vpc配置端口。

    此答案来自钉钉群“阿里函数计算官网客户"

    2023-03-27 09:47:45
    赞同 展开评论 打赏

快速交付实现商业价值。

热门讨论

热门文章

相关电子书

更多
阿里云MaxCompute百问百答 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载