classifai icon indicating copy to clipboard operation
classifai copied to clipboard

Getting "rest_taxonomy_invalid"(404) error randomly in rest API call by editor.

Open iamdharmesh opened this issue 2 years ago • 0 comments

Describe the bug

Found a strange bug, Rest API calls initiated by Gutenberg to get taxonomy terms are failing with 404 (rest_taxonomy_invalid and rest_no_route) randomly. This happens randomly sometimes it happens sometimes it does not. I have attached a screenshot to give more idea of the error.

Note: During checking on existing issues to check if someone has faced this before, I found this comment by @peterwilsoncc which mentions a similar issue.

Steps to Reproduce

  1. Setup ClassifAI and Language processing.
  2. Enable all 4 taxonomy and select Watson taxonomy as taxonomy.
  3. Go to the edit post page of any post.
  4. Open developer tools (F12) to see network calls and console errors.
  5. You will find 404 errors on API calls. (This happens randomly so, you may have to reload multiple time to get this)

Screenshots, screen recording, code snippet

image

image

image

Environment information

No response

WordPress information

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

iamdharmesh avatar Sep 16 '22 12:09 iamdharmesh