Common issues
This guide covers common issues you might encounter while using Screen Answerer and how to resolve them.API key errors
Invalid API key format
Error message:Invalid API key format
Cause: The API key doesn’t match the expected Gemini API key format.
Solution:
- Verify your API key starts with
AIzaand is exactly 39 characters long - Check for any extra spaces or characters when copying the key
- Get a new API key from Google AI Studio if needed
API key validation failed
Error message:Invalid API key provided. Please check your API key and try again.
Cause: The API key is formatted correctly but is not valid or has been revoked.
Solution:
- Verify the API key is active in Google AI Studio
- Check if the key has any usage restrictions or quotas
- Generate a new API key if the current one has been revoked
- Ensure you’re using the correct API key for the Gemini API
Missing API key
Error message:API key is required
Cause: No API key was provided in the request.
Solution:
- Open Settings (⚙️ icon) in the top right corner
- Navigate to the API Key tab
- Enter your Gemini API key
- Click Save Settings
Rate limiting
Too many requests
Error message:Rate limit exceeded. Please wait before sending another request
Cause: You’ve made too many requests in a short time period. The application enforces a 5-second window between requests.
Solution:
- Wait at least 5 seconds before sending another request
- If using screen monitoring, the system automatically spaces requests
- Reduce the monitoring frequency if you’re hitting rate limits frequently
Server rate limiting
Error message: HTTP 429 status code Cause: The server’s global rate limiter (100 requests per 15 minutes per IP) has been exceeded. Solution:- Wait 15 minutes for the rate limit to reset
- Reduce the frequency of requests
- If you’re sharing an IP with others, coordinate API usage
Quota exhaustion
API quota exceeded
Error message:API quota limit reached. Please try again later.
Cause: Your Gemini API quota has been exhausted.
Solution:
- Check your quota usage in Google AI Studio
- Wait for your quota to reset (typically resets daily or monthly)
- Consider upgrading your API plan if you need higher limits
- Switch to a lighter model (gemini-2.0-flash-lite) to reduce quota usage
Approaching quota limit
Error message:API quota limit approaching, please try again later
Cause: The application’s internal quota counter (50 calls per minute) is near the limit.
Solution:
- Wait 1 minute for the counter to reset
- Reduce the frequency of monitoring or manual requests
- This is a protective measure to prevent exceeding API quotas
Connection errors
Failed to process question
Error message:Failed to process question
Cause: General error during question processing, could be network, API, or server-related.
Solution:
- Check your internet connection
- Verify the Screen Answerer server is running
- Check browser console for detailed error messages
- Try refreshing the page
- Verify your API key is still valid
Server not responding
Cause: The Screen Answerer server is not running or not accessible. Solution:- Verify the server is running on the correct port (default: 3000)
- Check if another application is using port 3000
- The server automatically tries port 3001 if 3000 is in use
- Restart the server:
npm start
Image upload issues
Only image files allowed
Error message:Only image files are allowed!
Cause: You attempted to upload a non-image file.
Solution:
- Only upload PNG or JPEG image files
- Supported formats:
.png,.jpg,.jpeg - Ensure the file extension is correct
File size too large
Cause: Image file exceeds the 5MB limit. Solution:- Compress your image to under 5MB
- Use image compression tools or resize the image
- Screenshot only the relevant portion of the screen
No image provided
Error message:No image provided or No question or image provided
Cause: The request was sent without an image or text question.
Solution:
- Ensure you’ve captured a screenshot before submitting
- Verify the file was selected correctly
- Check browser console for upload errors
Screen monitoring issues
Screen capture permission denied
Cause: Browser permission to capture screen was denied. Solution:- Click “Start Monitoring” again and allow screen sharing
- Select the correct screen or window to share
- Check browser permissions in settings
Monitoring stopped unexpectedly
Cause: User stopped sharing screen or browser lost permission. Solution:- Click “Start Monitoring” to restart
- Ensure you don’t accidentally close the share permission
- Check if browser has any restrictions on long-running screen captures
Browser compatibility
Features not working properly
Warning:For the best experience, please use Chrome or Firefox.
Cause: Some browsers have limited support for screen capture APIs.
Solution:
- Use Google Chrome or Mozilla Firefox for best compatibility
- Update your browser to the latest version
- Check if your browser supports
navigator.mediaDevices.getDisplayMedia()
Getting help
If you continue to experience issues:- Check the browser console for detailed error messages (F12 or right-click > Inspect > Console)
- Verify all system requirements are met
- Ensure you’re using a supported browser (Chrome or Firefox recommended)
- Check your API key status in Google AI Studio
- Review your API quota and usage limits
Error logging
The application logs errors to:- Browser console (client-side errors)
- Server console (server-side errors)