-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Uncaught Error: invalid keyPath #2918
Comments
cc @webron |
Thanks @shockey. FWIW, |
@webron rightly so! Apologies, my initial description wasn't abundantly clear. There's a combination of things at work here:
paths:
/pet:
post: The resulting JS object (or JSON even) would be: {
"paths": {
"/pet": {
"post": null
}
}
} You'd never actually publish this in a spec (I hope), but this would be a common place to pause when you're handwriting a spec, so this mostly affects the Editor, in practice. When we try to grab the operation at
Here is the culprit, as I mentioned earlier. The big problem is that this code is in a reducer, which is not covered under our React try/catch guard. So, when the error throws, it blows up the app's lifecycle, which requires a page refresh to fix. |
This spec:
causes a
Uncaught Error: invalid keyPath
error, which kills the React lifecycle. Refresh and load of a different spec is required to avoid.This is especially bad for the Editor.
The error is originating here.
The text was updated successfully, but these errors were encountered: