question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 API error when saving entry

See original GitHub issue

cc: @jackDevAu @pierssinclairssw

Hi,

Describe the bug Some of our users are getting an error when they try to save an entry.

Failed to persist entry: API_ERROR: Not Found

image Figure: Error when saving

After some investigation, it looks like the error occurs when Netlify CMS tries to compare the cms changes branch on the users fork with the main branch on the base repository. e.g. https://api.github.com/repos/SSWConsulting/SSW.Rules.Content/compare/main...JackDevAU:cms/JackDevAU/SSW.Rules.Content/rule/appointments-do-you-show-all-the-necessary-information-in-the-subject/rule

the JackDevAU:cms/JackDevAU/SSW.Rules.Content/rule/appointments-do-you-show-all-the-necessary-information-in-the-subject/rule branch was not created. It is not clear why (see video). The results are the same when using an incoginto window in a different browser.

The problem is resolved after updating the users fork. To try reproduce the problem, we reverted a fork to an old commit, then made a change, but the entry still saved.

To Reproduce We cannot consistently reproduce this error as it is only happening to some of our users. See our video attached below demoing the problem.

Expected behavior The entry should save without error.

Applicable Versions:

  • Netlify CMS core version: 2.54.0
  • Netlify CMS app version: 2.15.59
  • Git provider: GitHub

CMS configuration https://github.com/SSWConsulting/SSW.Rules/blob/main/src/cms/config.js

Additional context https://github.com/SSWConsulting/SSW.Rules/issues/801

https://user-images.githubusercontent.com/38869720/148888815-fba3ec44-c978-45a0-8f3f-d3e99713ef13.mp4

Figure: Demo of the error

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
asheerrizvicommented, Jul 4, 2022

Here’s the PR, let me know if you guys need any changes: #6504

@erezrokah @bradystroud

😄

1reaction
bradystroudcommented, Jul 4, 2022

Hey @asheerrizvi Looks good - Go ahead and create a PR 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error saving flow - Power Platform Community - Microsoft
I get the error message when trying to save a flow. Can anyone help? Flow save failed with code 'DynamicOperationRequestClientFailure' and ...
Read more >
Apigility "Error saving field" while creating "db-connected ...
It seems that when the new service is created, if the table name contains an underscore ( _ ), the API will convert...
Read more >
REST API error codes - IBM
Failed to create the saved search, try again. ER602, Invalid input. ER603, Specified search name exists, save this search with a different name....
Read more >
Debugging PageBuilder "There was an error saving your ...
We found a workaround for the issue. It is caused by an unresolved bug in the BigCommerce backend. The Page Builder will not...
Read more >
Errors | Contentful
HTTP status code Error code Description 401 Unauthorized AccessTokenInvalid The authorization token was invalid. 422 Unprocessable Entity UnknownField The triggered query references an unknown... 422 Unprocessable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found