SDK Troubleshooting
This document provides solutions to common issues and frequently asked questions when integrating ConnectFramework in Python, JavaScript, Swift, and Rust.
Common Issues and Solutions
Invalid API Key Error
Cause: Your API key is incorrect or missing.
Solution:
Ensure that you initialize the SDK with the correct API key:
Verify your API key in the developer dashboard.
Ensure your API key is not expired or deactivated.
Login Is Not Working or Returning False
False
Possible Causes:
The API key might not have been initialized.
The user email or unique ID is incorrect.
OTP verification is required but has not been completed.
Solution:
Double-check that initialization occurs before calling
login()
:Ensure the provided email is correct.
If OTP verification is required, submit the OTP:
OTP Verification Failing
Possible Causes:
The OTP code is incorrect.
The OTP has expired.
Solution:
Ensure the user enters the correct OTP.
If the OTP is expired, request a new OTP and retry.
Handle OTP expiration gracefully in the user interface.
Logout Is Not Working
Possible Cause: The function may not be called properly.
Solution:
Ensure logout()
is executed correctly:
If the problem persists, confirm if the user is currently logged in before calling logout()
:
is_connected()
Returns False
Even After Login
is_connected()
Returns False
Even After LoginPossible Cause: The Connect.ai desktop client may not be running.
Solution:
Ensure that the Connect.ai desktop client is installed and running.
Verify if the user is actually logged in:
Restart the desktop client and try again.
Analytics Events Are Not Showing Up
Possible Causes:
Data processing delay (events may take a few minutes to appear).
API key is incorrect.
Network connectivity issues.
Solution:
Confirm that analytics events are being sent correctly:
Check the network connection.
Wait a few minutes for events to appear in the developer dashboard.
Try submitting an event with additional details:
Frequently Asked Questions
Can I Use ConnectFramework Without an Email?
No. Email authentication is required for security and user verification.
Does ConnectFramework Support Multiple Logins at the Same Time?
No. Only one active session is allowed per user. If another login occurs, the previous session may be invalidated.
What Happens if the User Closes the OTP Verification Flow?
If the user does not complete OTP verification, they will not be logged in. You should handle this case in your user interface and allow the user to request a new OTP.
How Can I Check if a User Is Already Logged In?
Use is_connected()
to check the login state:
How Do I Debug API Calls Failing in JavaScript?
If API requests fail in JavaScript, try the following:
Open the Developer Console (F12) and check the Network tab for errors.
Ensure the correct API key is set:
Log errors to get more details:
Does ConnectFramework Have an Offline Mode?
No. An internet connection is required for authentication and analytics tracking.
How Do I Reset a User Session Completely?
To reset a session:
Call
logout()
.Restart the application.
Log in again.
How Do I Report an Issue with the SDK?
If you encounter any bugs or unexpected behavior:
Check the logs for error messages.
Verify your API key, internet connection, and function parameters.
Contact ConnectFramework Support with error details and logs.
Contact Support
If you're still experiencing issues, reach out to support@connect.ai
Last updated