Troubleshooting
Having issues with Spekra? This guide covers common problems and their solutions.
Quick Links
Connection Issues
API key errors, network problems, authentication failures.
Missing Data
Results not appearing, partial data, delayed updates.
Enable Debug Mode
The first step in troubleshooting is enabling debug mode:
Playwright
['@spekra/playwright', {
apiKey: process.env.SPEKRA_API_KEY,
debug: true,
}]
Jest
['@spekra/jest', {
apiKey: process.env.SPEKRA_API_KEY,
debug: true,
}]
Environment Variable
Alternatively, set the environment variable:
SPEKRA_DEBUG=true npx playwright test
Debug mode outputs:
- Configuration values (with secrets redacted)
- Number of test results captured
- API request details
- Response status and timing
Common Issues
Reporter Not Installed
Symptom: Tests run but no output from Spekra reporter.
Solution: Verify the package is installed:
npm list @spekra/playwright
# or
npm list @spekra/jest
If not listed, install it:
npm install @spekra/playwright
Tests Pass But No Data Appears
Symptom: Tests complete successfully, no errors, but dashboard is empty.
Possible causes:
- Reporter not configured in test config
enabled: falsein configuration- API key not set or invalid
- Network issues silently failing
Solution: Enable debug mode and check the output.
"Cannot find module" Error
Symptom: Error: Cannot find module '@spekra/playwright'
Solution:
- Ensure the package is installed
- Check you're running from the correct directory
- Try deleting
node_modulesand reinstalling
Slow Test Completion
Symptom: Tests finish but the process hangs for several seconds.
Cause: The reporter is waiting for the API request to complete.
Solutions:
- Reduce timeout:
timeout: 5000 - Check network connectivity
- Ensure no firewall is blocking requests
Getting Help
If these solutions don't help:
- Check GitHub Issues - Search for similar problems
- Open a New Issue - Include debug output and configuration
- Contact Support - For urgent production issues
When reporting issues, always include the debug output and your test framework version.