Troubleshooting
This section provides guidance for resolving common issues encountered while working with the platform. It includes known error messages, configuration problems, and environment-specific behaviors.
If the information provided here does not address your specific issue, please refer to the official product documentation or contact support for further assistance.
Please note that the links to the workbench tools in this tutorial only apply to the IBM Education Environment we provide. If you are using a different environment, e.g. your own installation, you will need to navigate directly to the required tools.
This section will help you find solutions to known issues. If you can't find a solution here, please refer to the Product Documentation - Troubleshooting
fast-forward error in the console when running k5 push. How can I solve this?Try to run k5 pull before the push command. If this is not resolving it, you can also try git pull and retry the push again.
Update Debug Task is missing?Use a single workspace project in Visual Studio Code.
'Expected an assignment or function call and instead saw an expression.' for my test classes?You can place some additional override rules in your file .eslintrc.json like this rule "no-unused-expressions": "off". This is especially useful if you have testing criterias like expect(runner.instance.lastUpdatedBy).to.not.be.undefined;.
k5 pull does not seem to update the solution framework.Try closing Visual Studio Code and reopening again.
Sometimes Eclipse is not recognising the latest changes of the generated code. Refreshing the project usually fixes this problem. To do so, please open the options menu of your project in the project explorer and trigger the refresh action (shortcut: F5).
401 usually means that you are trying to process an action without being authenticated.
Please run k5 login-envoy and login with your credentials in order to re-authenticate yourself.
To debug a service, testing needs to be enabled at the environment and the service has to be deployed successfully.
Please check the configuration of your deployment target in the Environment page and enable the feature "testing support" if it is not yet enabled. After this, please ensure that your service is deployed properly.
Hint: After enabling the testing support another deploy of your service is necessary to support debugging.
Open the pipeline run in the OpenShift console and look at the pipeline steps to find out about the error. You can open the pipeline run from the CI/CD page in the Solution Designer after opening your project.
It could be that your service was not deployed with the latest state. Ensure that the service was deployed properly after you have pushed the changes to Git. You can do that by triggering another deploy pipeline.
error TS2307: Cannot find module 'mathjs' or its corresponding type declarations occurs. How can I fix this?Install mathjs by tipping npm install mathjs in your terminal.
const order: orders_Order = await this.repo.orders.Order.find({includeSubEntities:false}, 'orderId == "00000123"')[0]; the user is expecting one particular order. But executing this code will not retrieve any result.The problem with the code above is that it will try to retrieve the first element of the list, even though the list has not been retrieved before (since processed asynchronously).
To retrieve the list of elements first, let's enclose the entire statement (except ´[0]´) including await in the parentheses. Here is the correct code: const order: orders_Order = (await this.repo.orders.Order.find({includeSubEntities:false}, 'orderId == "00000123"'))[0];. This adjustment ensures that first the list is retrieved and then the first element of the list is assigned to the order constant.