# Troubleshooting Alemba Discovery

## Connector diagnostics

{% hint style="danger" %}
This is currently Draft documentation and may change before being published.
{% endhint %}

The connector has the facility to trace information. The data can be obtained through Polling tracing or Application tracing.

* Authentication failures – check AIH Basic Auth and Lansweeper API token
* API rate limit (150 requests/minute) – AIH introduces delay to avoid exceeding limits
* Array fields – flattened into comma-separated values; only first item imported in some cases
* Deleted assets – may require filter logic in AIH to exclude removed records
* Connector Builder deletion – avoid deleting asset types once created (\*Known Issue: risk of losing all mappings below the entry deleted)

#### Authentication Failures

* Verify username/password in the authentication function
* Check that Basic Authentication header is properly formatted

#### 2. Token Retrieval Issues

* Verify PowerShell script path and permissions
* Check Azure credentials and connectivity
* Review script output for errors

#### 3. Lansweeper API Errors

* Verify site ID and integration ID
* Check Lansweeper API connectivity
* Review API response for error details

#### 4. Software ID Format Issues

* Ensure software ID follows "software::publisher" format
* URL encode special characters in software names
* Verify software exists in Lansweeper

#### 5. Pagination Issues

* Ensure $nextpage parameter is properly formatted
* Check that pagination URLs are correctly constructed

#### Debug Information

The flow includes multiple debug nodes that provide detailed information:

* Request/response payloads
* Authentication status
* API call details
* Error messages

Enable debug nodes in Node-RED to troubleshoot issues.


---

# Agent Instructions: 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:

```
GET https://docs.alemba.com/asm-hermes/integrate/managing-integration/connectors-to-asm-core/cmdb-connectors/alembadiscovery-connector/troubleshooting-alemba-discovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
