Unable to start amplify mock InternalFailure:请求处理因未知错误、异常或失败而失败

Posted

技术标签:

【中文标题】Unable to start amplify mock InternalFailure:请求处理因未知错误、异常或失败而失败【英文标题】:Unable to start amplify mock InternalFailure: The request processing has failed because of an unknown error, exception or failure 【发布时间】:2021-02-02 18:10:15 【问题描述】:

我刚刚尝试启动我的amplify mock 服务并收到以下错误:

InternalFailure: The request processing has failed because of an unknown error, exception or failure.

这在几个小时前就已经奏效了,没有重置或其他更改。

为了解决这个问题,我确实成功地完全删除了 amplify,执行 amplify init & amplify add api,但这意味着我每次都会丢失本地数据,但在过去几个小时内它会随机发生多次。

对于发生错误时的完整日志:

hutber@hutber:/var/www/unsal.co.uk$ amplify mock

GraphQL schema compiled successfully.

Edit your schema at /var/www/unsal.co.uk/amplify/backend/api/unsalcouk/schema.graphql or place .graphql files in a directory at /var/www/unsal.co.uk/amplify/backend/api/unsalcouk/schema
Failed to start API Mock endpoint InternalFailure

【问题讨论】:

【参考方案1】:

问题可能来自用于模拟的 SQLite 文件(我猜是锁定故事)。删除mock-data/dynamodb/your_db_file.db文件夹中的文件,再次执行amplify mock api。该文件会正确地重新创建自身。这样可以避免重置整个放大项目。

【讨论】:

以上是关于Unable to start amplify mock InternalFailure:请求处理因未知错误、异常或失败而失败的主要内容,如果未能解决你的问题,请参考以下文章

Tomcat unable to start

Android Studio - Unable to create Debug Bridge: Unable to start adb server: adb server version (32)

The required Server component failed to start so Tomcat is unable to start解决之一

SpringBoot Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFact

Tomcat unable to start within 45 seconds.

Error Unable to start the Genymotion virtual device.解决