# Rest Connector JS PreScript Fault Finding Techniques

When working with the JS script and the rest connector, it might be difficult to work out what the issue is if you do not have sight of the parameters being saved. You can easily find these in your MySQL database.&#x20;

First thing to do is to copy the Collection ID, you can do this by going to you collection, in our example it was a Data-In, and editting.&#x20;

One inside you will see a GUID show in the URL, you can copy this, this is your Collection ID.

<figure><img src="/files/uRsdG8mYuwKJwpHWf4PX" alt=""><figcaption><p>Fetch Collection ID</p></figcaption></figure>

This ID is 215e498c-1bb0-4ccf-8154-a6cd4540cbf7

Next is to log into you MySQL Database. Once in, you can run a query on the microservices.CollectionSourceConnectors table to find the source connector (If you are using a Data-out it will be table microservices.CollectionPublisherConnectors)

```sql
SELECT * FROM microservices.CollectionSourceConnectors
where Collection = '215e498c-1bb0-4ccf-8154-a6cd4540cbf7';
```

In the results you can now see the parameters sitting in the State field in your DB. This example is the second example we [used ](/integration-hub/use-cases/follow-along-examples/rest-connector-js-prescript-example.md)and you can see the "calc" parameter here.

<figure><img src="/files/2EVLkatw6ezRjmlcV7m8" alt=""><figcaption></figcaption></figure>

Hopefully this will help bring some visibility to your JS script and parameters.


---

# 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://university.utopiasync.com/integration-hub/use-cases/follow-along-examples/rest-connector-js-prescript-example/rest-connector-js-prescript-fault-finding-techniques.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.
