Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid directory id given. Directory doesn't exists #110

Open
thompsonsj opened this issue Oct 12, 2023 · 0 comments
Open

Invalid directory id given. Directory doesn't exists #110

thompsonsj opened this issue Oct 12, 2023 · 0 comments

Comments

@thompsonsj
Copy link
Owner

This error appears fairly frequently. It seems that some entities do not get a crowdin article directory associated with them. There are many scenarios that can cause this situation. e.g.:

  • articles are created when the plugin is disabled (e.g. locally)
  • there's an error when creating an article that prevents afterChange from running?
  • article directory is deleted as part of the plugin logic.

TDD this bug out!



[2023-10-12T14:45:38] | (payload): Error: Invalid directory id given. Directory doesn't exists
-- | --
[2023-10-12T14:45:38] | at handleHttpClientError (/workspace/node_modules/@crowdin/crowdin-api-client/out/core/index.js:67:15)
[2023-10-12T14:45:38] | at /workspace/node_modules/@crowdin/crowdin-api-client/out/core/index.js:235:29
[2023-10-12T14:45:38] | at runMicrotasks (<anonymous>)
[2023-10-12T14:45:38] | at processTicksAndRejections (node:internal/process/task_queues:96:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant