-
Notifications
You must be signed in to change notification settings - Fork 396
Rupato/fix: getBlocksInStatement trackjs error #16244
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
Rupato/fix: getBlocksInStatement trackjs error #16244
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information. |
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-rupato-deriv-rupato-trackjs-getblocks-cf83de.binary.sx/ |
|
⏳ Generating Lighthouse report... |



Fixing the getBlocksInStatement Error
The getBlocksInStatement error occurred because, in the Binary Bot system, we used to load the workspace when we uploaded an XML file. This approach allowed the system to handle blocks that were not present by ensuring they were properly loaded into the workspace. However, in the Deriv Bot system, we now directly load the XML file without initializing the workspace first. As a result, blocks that are referenced in the XML but are not present can lead to errors.
To fix this issue, you need to ensure that the system correctly handles blocks that are missing or not yet loaded when processing the XML. This might involve initializing the workspace or implementing logic to handle missing blocks gracefully.