You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lkszzajac opened this issue
Nov 25, 2024
· 2 comments
· May be fixed by #17686
Assignees
Labels
domain:dxThis issue reports a developer experience problem or possible improvement.support:2An issue reported by a commercially licensed client.type:bugThis issue reports a buggy (incorrect) behavior.
Set tokenUrl to a function call that throws an error:
cloudServices: {
tokenUrl: async () => {
const response = {status: 404}
if (response.status < 200 || response.status > 299) {
throw new Error('Cannot download new token.');
}
if (typeof response.data !== 'string') {
throw new Error('Unable to parse token.');
}
return response.data;
},
✔️ Expected result
after editor crashes, the getToken interval call should be cleared
❌ Actual result
getToken interval call is being executed indefinitely
📃 Other details
Browser: n/a
OS: n/a
First affected CKEditor version: n/a
Installed CKEditor plugins: …
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered:
lkszzajac
added
domain:dx
This issue reports a developer experience problem or possible improvement.
type:bug
This issue reports a buggy (incorrect) behavior.
labels
Nov 25, 2024
@f1ames Apparently, it's. I added the detection for failing of the token initialization process in the cloud services plugin. Take a look at proposed solution: #17686.
domain:dxThis issue reports a developer experience problem or possible improvement.support:2An issue reported by a commercially licensed client.type:bugThis issue reports a buggy (incorrect) behavior.
📝 Provide detailed reproduction steps (if any)
tokenUrl
to a function call that throws an error:✔️ Expected result
getToken
interval call should be cleared❌ Actual result
getToken
interval call is being executed indefinitely📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: