Comment on page
Here is a list of the error codes that the Cortex API can return. This list is not exhaustive (yet) and will be updated in the future.
You sent a request with an invalid method name. This a bug is your application. Please check this documentation to see which methods are available.
You sent a request to call a valid method, but the parameters are wrong. It can be because:
- You didn't provide a required parameter
- You provided a parameters with an invalid name
- The name of parameter is correct but the value is invalid
This is a bug in your application. Please check the documentation of the method.
An unexpected error happened in the EMOTIV cloud while processing your request. It can be a temporary failure of the EMOTIV servers, like when the servers are in maintenance. Or it can be a bug in Cortex. If the problem persists, please contact the EMOTIV customer support.
Cortex must connect to the EMOTIV cloud to process your request, but the connection failed. Please make sure that you computer has a working internet connection.
You sent a request to perform an action on a specific headset, but Cortex cannot find this headset. Some possible reasons for this error:
- You provided an invalid headset ID in your request
- The headset was disconnected (maybe it is out of range of your computer)
- The headset was switched off
You called createSession or updateSession with the parameter "status" set to "active", but your license doesn't authorize you to activate a session. You have a paid EMOTIV license to activate a session. If you already have such a license but the problem still persists, then contact the EMOTIV customer support. You should also read the prerequisite.
You included a session ID in the parameters of your request, but Cortex cannot find this session. It can be because you session ID is invalid or because the session is already closed.
You included a Cortex token in the parameters of your request, but this token is invalid. This is a bug in your application. When a method requires a Cortex token, please make sure that your token comes from the result of the method authorize.
- The stream is not available for this headset. For example, the motion data of an EPOC X headset can be disable.
Your request includes an invalid client ID or an invalid client secret.
When the computer is offline, you can use the license for a limited period of time. The end of this period is the "hard limit" of the license. You can check it with getLicenseInfo. After the "hard limit" has been reached, Cortex must connect to the EMOTIV cloud to validate the license again. To solve this problem, the computer must have an internet connection and then you must call authorize.
You tried to unload a training profile from a headset, but no profile was loaded for this headset.
You tried to perform an operation (eg setupProfile, training...) on a training profile, but this profile was loaded by another application. An application can only access a profile that loaded by itself. You can call getCurrentProfile to check if your application loaded the profile of a headset or not.
Cortex failed to communicate with the headset. Maybe the wireless connection between the headset and the computer was interrupted. Your application should try again. You can also call queryHeadsets to check the status of the headset.
The EMOTIV cloud refused the user credentials provided by Cortex. The user must logout and login again.
You are trying to access a record that doesn't exist, or the record exist but you don't have the permission to access it.
You are trying to inject a marker but its time is too far in the past. You should inject your markers in real time, at the moment the event you want to mark happens.
You are trying to inject a marker but its time is too far in the future. You should inject your markers in real time, at the moment the event you want to mark happens.
You are trying to create a subject, but another subject with the same name already exists.
You are trying to create or update a record, but the record title is invalid. The title must be 200 characters long or less.