> For the complete documentation index, see [llms.txt](https://cqube.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cqube.sunbird.org/cqube-v-4.1-beta/troubleshooting-issues/angular-and-node-issues.md).

# Angular & Node Issues

|                                                                                                 | **Where**                                     |                                           | **Why**                                                                        | **How to resolve**                                                                                       |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
| **Error message**                                                                               | **Error Location**                            | **Error type**                            | **Error identification (Cause)**                                               | **Probable resolution**                                                                                  |
| Internal error. Please try again!!                                                              | On Browser                                    | Exception                                 | Issue in data, key not found, or file not there in s3                          | <p>"1. Make sure the file is available in s3 or not<br> 2. Check the data format is correct or not."</p> |
| NoSuchKey: The specified key does not exist                                                     | /opt/cqube/logs/server\_side-error.log        | File not present exception                | If specified file is not present at its location                               | Make sure all file are available which we are used                                                       |
| Request failed with status code 401                                                             | On Browser                                    | Unauthorised user                         | When ever token expired, user will be unauthorised                             | User should refresh page and login with valid username and password                                      |
| Error: uncaughtException: ENOENT: no such file or directory                                     | /opt/cqube/logs/server\_side-error.log        | Local file is not there at given location | <p>The file which we are trying to read is <br>not present at its location</p> | We should put the required file at given location                                                        |
| Error: Request failed with status code 502                                                      | On Browser                                    | Bad gateway                               | If specified url is not accessible                                             | Restart the ngnix server or otherwise give sudo pm2 resurrect                                            |
| UncaughtException: The specified bucket does not exist                                          | /opt/cqube/logs/admin\_server\_side-error.log | S3 bucket not exist                       | The bucket which we are trying to access is not present                        | Create all the required buckets                                                                          |
| TypeError: Cannot read property 'toString' of undefined                                         | /opt/cqube/logs/server\_side-error.log        | Key unavailable                           | If specific key is not found                                                   | Make sure key is there in data, if not there put it as empty or null value                               |
| TypeError: districtData.map is not a function                                                   | /opt/cqube/logs/server\_side-error.log        | If file has no data                       | If file is there but data is null                                              | If data is not there don't create files                                                                  |
| NetworkingError: socket hang up                                                                 | /opt/cqube/logs/server\_side-error.log        | Network issue                             | If network is very weak or not connected                                       | Check you internet connection                                                                            |
| Error: Cannot find module 's3-append'/any                                                       | /opt/cqube/logs/server\_side-error.log        | Library not installed                     | If we are using some module that is not installed                              | Do npm install and rerun the server                                                                      |
| TypeError: Cannot read property 'keyname(any key)' of null/undefined                            | /opt/cqube/logs/server\_side-error.log        | Key unavailable                           | Trying to access a key which is null/undefined                                 | <p>Check the data,<br> if key not present put the key with null value in s3 files</p>                    |
| TypeError: districtsData.sort is not a function                                                 | /opt/cqube/logs/server\_side-error.log        | If file has no data                       | If file is there but data is null                                              | If data is not there don't create files                                                                  |
| RequestTimeTooSkewed: The difference between the request time and the current time is too large | /opt/cqube/logs/server\_side-error.log        | System time not correct                   | If syatem time is different from actual time                                   | Change your system time to actual time                                                                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cqube.sunbird.org/cqube-v-4.1-beta/troubleshooting-issues/angular-and-node-issues.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
