<@U04S8PLJWMT> Getting below error while trying to...
# ask-ai
v
@kapa.ai Getting below error while trying to setup freshchat as a source : 2025-11-11 171727 INFO 2025-11-11 171727 info 2025-11-11 171727 INFO 2025-11-11 171727 info ----- START CHECK ----- 2025-11-11 171727 INFO 2025-11-11 171727 info 2025-11-11 171728 INFO 2025-11-11 171728 info Connector exited, processing output 2025-11-11 171728 INFO 2025-11-11 171728 info Output file jobOutput.json found 2025-11-11 171728 INFO 2025-11-11 171728 info Connector exited with exit code 0 2025-11-11 171728 INFO 2025-11-11 171728 info Reading messages from protocol version 0.2.0 2025-11-11 171728 ERROR 2025-11-11 171728 error 'GET' request to 'https://mpaani-org.freshchat.com/v2/users?items_per_page=20&updated_from=2025-11-01T00%3A00%3A00.000000Z&updated_to=2025-11-11T11%3A47%3A27.000000Z' failed with status code '401' and error message: 'Please provide a valid token'. Request (body): 'None'. Response (body): '{'success': False, 'error_code': 401, 'error_message': 'Please provide a valid token'}'. Response (headers): '{'Date': 'Tue, 11 Nov 2025 114728 GMT', 'Content-Type': 'application/json', 'Content-Length': '81', 'Connection': 'keep-alive', 'Cache-Control': 'no-store', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-xss-protection': '1; mode=block', 'x-envoy-upstream-service-time': '7', 'x-trace-id': '00-e11a40ab90076c9013b8ce0bb79c88de-88cd866989499ac2-00', 'nel': '{ "report_to": "nel-endpoint-freshchat", "max_age": 2592000, "include_subdomains": true}', 'report-to': '{ "group": "nel-endpoint-freshchat", "max_age": 2592000, "include_subdomains": true, "endpoints": [{"url": "https://edge-admin.us-east-1.freshedge.net/nelreports/freshchat"}]}', 'x-server-processing-time-ms': '9', 'x-fw-ratelimiting-managed': 'false', 'x-request-id': '5370e72b-7a1e-46f9-9bba-5a1edc2a2f73', 'cf-cache-status': 'DYNAMIC', 'Set-Cookie': '__cf_bm=ZjcNgsgdlzP.x3x6ucAKdZdqdeHL8wfnafOTwFSYk80-1762861648-1.0.1.1-JtV1rRcZ9k..bQFWwZwrE7HPP2j1FAaPBHGcyind9I7SI.UIxmnYY.wAaKNuQerqBe5ehRNqtQFjo37JTbsMJxDvJmsBuOyFGWIxIIAsUVI; path=/; expires=Tue, 11-Nov-25 121728 GMT; domain=.freshchat.com; HttpOnly; Secure; SameSite=None', 'Server': 'cloudflare', 'CF-RAY': '99cd8e12bf0847e9-BOM'}'. 2025-11-11 171728 WARN 2025-11-11 171728 warn Stream users is not available: HTTP Status Code: 401. Error: Unauthorized. Please ensure you are authenticated correctly. 2025-11-11 171728 ERROR 2025-11-11 171728 error Check failed 2025-11-11 171728 INFO 2025-11-11 171728 info Checking for optional control message... 2025-11-11 171728 INFO 2025-11-11 171728 info Optional control message not found. Skipping... 2025-11-11 171728 INFO 2025-11-11 171728 info Writing output of 100640bc-c2f3-42b2-a91a-8164f7499ec3_2d49d9de-abfb-4a50-8a31-45e158539cd5_0_check to the doc store 2025-11-11 171728 INFO 2025-11-11 171728 info Marking workload 100640bc-c2f3-42b2-a91a-8164f7499ec3_2d49d9de-abfb-4a50-8a31-45e158539cd5_0_check as successful 2025-11-11 171728 INFO 2025-11-11 171728 info Deliberately exiting process with code 0. 2025-11-11 171728 INFO 2025-11-11 171728 info 2025-11-11 171728 INFO 2025-11-11 171728 info ----- END CHECK ----- 2025-11-11 171728 INFO 2025-11-11 171728 info
k
The error you're encountering indicates an authentication issue with the Freshchat source connector. The API is returning a 401 error with the message "Please provide a valid token." Based on the [Freshchat source documentation](https://docs.airbyte.com/integrations/sources/freshchat), the connector requires an API Key for authentication. Here's what you need to verify: ## Steps to resolve: 1. Verify your API Key: Make sure you're using a valid API key from Freshchat. According to the documentation, to obtain the API key you should: - Navigate to Admin > CONFIGURE > API Tokens page in Freshchat - Click the Generate Token button to get the access token 2. Check the Account Name: Ensure you've provided the correct Account Name, which should be the unique account name for your Freshchat instance (e.g., if your Freshchat URL is
mpaani-org.freshchat.com
, your account name would be
mpaani-org
) 3. Verify the Start Date: Make sure the start date is in the correct format The error message shows that the connector is attempting to make requests to
https://mpaani-org.freshchat.com/v2/users
, but the authentication is failing. This suggests either: - The API key is incorrect or expired - The API key doesn't have the necessary permissions - The account name configuration might be incorrect Try regenerating a new API token from the Freshchat admin panel and reconfiguring your source with the new credentials. You can find more details about authentication in the [Freshchat API documentation](https://developers.freshchat.com/api/#authentication).