aws-amplify / amplify-studio

AWS Amplify Studio (Formerly Admin UI)
136 stars 31 forks source link

There was an error loading your data #396

Closed leduc57 closed 2 years ago

leduc57 commented 2 years ago

Before opening, please confirm:

App Id

dvs4m2yx2nvax

Region

eu-west-1

Environment name

dev

Amplify CLI Version

7.6.2

If applicable, what version of Node.js are you using?

16.13.0

What operating system are you using?

Mac

Browser type?

Safari

Describe the bug

Hi I tried to save and deploy, to pus, or pull ... everything works except the content UI manager ?

Capture d’écran 2021-12-08 à 09 28 55

Expected behavior

Just display the UI and manage content please

Reproduction steps

Just connect to the Content menu after Save and deploy

Additional information

No response

pananapread commented 2 years ago

Hi @StephaneWutke! You could be getting this error for several reasons:

Let me know if any of these apply :)

leduc57 commented 2 years ago

Hi and thx you for your quick feedback 1 - yes, but I’ve already done several time « Save & deploy » 2 - It s not the case, I don’t use but maybe it depends of the maxdepth too ? 3 - no custom directives 4 - It s a possibility , maybe an issue with Datastore, anyway I ve deleted all data for testing but the problem still unsolved ?

Regards

Le 8 déc. 2021 à 14:17, Anna M. Pfoertsch @.***> a écrit :

Hi @StephaneWutke https://github.com/StephaneWutke! You could be getting this error for several reasons:

did you create your data model from the CLI? In this case you might have to "Save and Deploy" again does your model have cyclical references? This is unsupported do you have custom directives? did you create a model, add data, and then change your model again? Let me know if any of these apply :) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-adminui/issues/396#issuecomment-988807054, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2SZOVW2R2OVPRKWNW3DTDUP5LIJANCNFSM5JTGOHJQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hisstoryxx commented 2 years ago

@StephaneWutke @pananapread Also I have same issue and tried all of those solutions, but It doesn't help..

mayBe IT's a bug of lastest Amplify studio. The post version AWS AMPLIFY occur nothing error. However, after aws amplify changed to aws studio this issue generated.!!

yppartyk commented 2 years ago

@StephaneWutke @hisstoryxx

Very sorry for this inconvenience. This error is an indication that Datastore has failed to initialize your schema. To help root cause your issue, can you please post a screenshot of your dev console when the Content page is loaded?

hisstoryxx commented 2 years ago

@yppartyk here it is image

yppartyk commented 2 years ago

@hisstoryxx

The console logs are not clear here. Can you please invite me to your app to help debug this further?

Once I review your app, you can delete me as a user.

image

hisstoryxx commented 2 years ago

@yppartyk Okay I send !!!

yppartyk commented 2 years ago

@hisstoryxx continuing the conversation on the issue you created: https://github.com/aws-amplify/amplify-adminui/issues/397

onder-inc commented 2 years ago

Hi @yppartyk - I am having the same issue as described above. I am only trying to go through the tutorial described here: https://docs.amplify.aws/start/getting-started/data-model/q/integration/vue/#generate-frontend-code-for-the-graphql-api

I have followed the exact steps of the tutorial and am unable to get past this point so far.

Here's a screenshot: image

Thanks in advance.

harrynguyenangle commented 2 years ago

Hi guys, does any one solve the problem. I was stuck with this issue for 2 days and can't find the answer I have created and deleted several times, try again and again, but content still not loading data here is my screenshots: Screen Shot 2021-12-18 at 22 45 53 Screen Shot 2021-12-18 at 20 48 54

matt-d-webb commented 2 years ago

I am seeing the same "There was an error loading your data" issue.

image

App Id: dmw9mluzv0ulb

I have invited @yppartyk as Manage Only user.

  1. "Save and deploy" succcessed
  2. Not aware of any "cyclical references"
  3. No custom directives.
  4. Didn't create any data models and add data and change the model again.

Worth noting, I have Staging and Dev environments which have identical data models which do not have this issue, the content loads fine into the Amplify Studio.

yppartyk commented 2 years ago

@matt-d-webb I was able to log into your app and check Content - it is working for me: image

FYI, we are currently working on improvements to this experience.

matt-d-webb commented 2 years ago

@matt-d-webb I was able to log into your app and check Content - it is working for me:

image

FYI, we are currently working on improvements to this experience.

Were you able to load "prod" @yppartyk? Dev & Staging were working fine before.

matt-d-webb commented 2 years ago

@yppartyk can you confirm if you were able to load "prod"? You screenshot shows "dev" which as mentioned, always worked. My issue raised relates to my "prod" backend instance. This is causing issues now so need to find a solution for this ASAP.

Is there any recommended steps to fix?

yppartyk commented 2 years ago

@matt-d-webb These are errors I see in your Prod environment. These errors are usually indicative of you making field(s) required that were previously not required. Before they were required, you most likely wrote records where these fields were null. After you made the field required, null is no longer allowed. Therefore the Datastore sync fails. You can try making those fields not required again.

image

As mentioned, we are actively working on improvement to this experience. Sorry for this inconvenience.

matt-d-webb commented 2 years ago

@yppartyk - no need to apologise - thank you for the error log. I hadn't seen this.

I have managed to resolve the issue with the suggestion / error log highlighted!! 🎉🎉🎉

johnpc commented 2 years ago

I've confirmed that data loads properly when a non-required field is changed to required. The records that fail to sync are called out in the header like Blog (3) (2 blogs failed to sync).

Screen Shot 2022-07-05 at 11 47 06 AM
devtekitin commented 7 months ago

how do i remove the whole data, flush the table to insert afresh then ?