aws-samples / aws-samples/appsync-with-postgraphile-rds

AppSync Start Schema Creation Failed with response details: The schema is being processed

Open
#5 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
PLpgSQL
Stars
49
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Hi, I am trying your example to connect to my PostgreSQL which hosted on docker. However I encounter below error when I was trying to run the `provider` lambda function. At below pieces of code:

```
await appsyncClient.startSchemaCreation({ apiId, definition }).promise()
let response = await appsyncClient.getSchemaCreationStatus({ apiId }).promise()
while (response.status !== 'SUCCESS') {
console.log(`Schema Creation Status: ${response.status}`)

if (response.status === 'FAILED') {
console.log(`Schema creation failed: ${response.details}`)
}

await new Promise((r) => setTimeout(r, 250))
response.status = (await appsyncClient.getSchemaCreationStatus({ apiId }).promise()).status
}
```

It returns status FAILED with response of: `The schema is being processed`.
May I know how to resolve this?

Thank you so much for this repo!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.