Warning: a promise was rejected with a non-error: [object Object] #1047
-
Hi, I started seeing this warning recently in my devtools console whenever I validate a form. I was wondering if anyone is seeing this also or is it just me? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
From what I checked, it's most likely a Bluebird warning (docs) - can you confirm that? And I guess you're using JSON schema, right? If so, we'll update our docs on how to mitigate it by wrapping the |
Beta Was this translation helpful? Give feedback.
-
@radekmie Hi, I am using GraphQL schema, but I did the following to remove the warning, don't know if its the right way though but it I created a custom class
And I return it in
|
Beta Was this translation helpful? Give feedback.
-
@radekmie I hope you could help again with this topic. I have a form which I use This code works:
I have no issues and I see the errors appear. I wanted to refactor the code so it would look better, so I did the following:
The 2nd code, no longer displays errors inline and in both cases I keep getting the I don't see what I am doing wrong or different. I tried to do the same test on a sandbox and the sandbox works fine. Any help is appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
@radekmie Hi, I am using GraphQL schema, but I did the following to remove the warning, don't know if its the right way though but it
seems to work.
I created a custom class
And I return it in
onValidate
, my onValidate returns a promise.