Troubleshooting
Common issues and solutions when working with the Finqu CLI.
Authentication Errors
”Authentication failed” or “Invalid credentials”
Solution: Re-authenticate using finqu sign-in:
finqu sign-inIf you’re using API credentials directly:
finqu sign-in --key YOUR_API_KEY --secret YOUR_API_SECRET“Token expired” errors
The CLI automatically refreshes tokens when they expire. If you’re seeing persistent token expiration errors:
- Run
finqu sign-inagain to refresh your authentication - Check that your system clock is synchronized (token validation depends on accurate timestamps)
Authentication not working in CI/CD
For headless environments (CI/CD pipelines), use environment variables or provide credentials directly:
export FINQU_API_CLIENT_ID=your_key
export FINQU_API_CLIENT_SECRET=your_secret
finqu sign-inOr provide credentials directly:
finqu sign-in --key $FINQU_API_KEY --secret $FINQU_API_SECRETPermission Errors
”You don’t have permission to access this theme”
Possible causes:
- Your account doesn’t have access to the theme
- The theme ID in your configuration is incorrect
- Your API credentials don’t have the necessary permissions
Solutions:
- Verify you have access to the theme in the Finqu admin panel
- Re-run
finqu theme configureto select the correct theme - Check with your account administrator about API permissions
API Errors
”API request failed” or “Network error”
Solutions:
- Check your internet connection
- Verify the
resourceUrlin your configuration file is correct - Check if the Finqu API is experiencing downtime
- Use the
-vor--verboseflag to get detailed error output:
finqu theme deploy -vRate limiting errors
If you’re making many rapid requests, you might hit rate limits. The CLI will automatically retry with exponential backoff. If issues persist:
- Reduce the frequency of your requests
- Use
finqu theme watchinstead of repeatedly runningfinqu theme deploy
File Sync Issues
Files not syncing correctly
Solution: Use --clean to ensure remote files match local files:
finqu theme deploy --cleanThis removes remote files that don’t exist locally, ensuring your remote theme matches your local directory.
Protected files not uploading
By default, config/settings_data.json and config/.draft are protected from upload to prevent overwriting theme settings. If you need to upload these:
finqu theme deploy --forceWarning: Using
--forcecan overwrite theme settings made in the backend theme editor. Use with caution.
Files uploading but changes not visible
After deploying, the server compiles assets automatically. If changes aren’t visible:
- Wait a few seconds for compilation to complete
- Hard refresh your browser (Ctrl+Shift+R or Cmd+Shift+R)
- Check browser cache settings
- Verify you’re viewing the correct theme version
Configuration Issues
”Configuration file not found”
Solutions:
- Run
finqu theme configureto create the configuration file - Ensure you’re in the correct directory
- Specify the config file path explicitly:
finqu theme deploy --config /path/to/finqu.config.jsonWrong environment being used
Specify the environment explicitly:
finqu theme deploy --env production
finqu theme deploy --env developmentCheck your finqu.config.json to see which environments are configured.
Debugging
Enable verbose logging
Use the -v or --verbose flag to get detailed output:
finqu theme deploy -v
finqu sign-in -vThis shows:
- API requests and responses
- File operations
- Configuration values being used
- Detailed error messages
Check CLI version
Ensure you’re using a recent version:
finqu --versionUpdate if needed:
npm install -g @finqu/cli@latestGetting Help
If you’re still experiencing issues:
- Check the Overview page for general information
- Review the specific command documentation:
- Contact Finqu Support
- Open an issue on GitHub