Troubleshooting Connection Issues
This guide helps you diagnose and fix common problems when connecting to GameGlue.
Quick Checklist
Before diving into specific issues, verify these basics:
- [ ] GameGlue Desktop Client is running
- [ ] Desktop Client shows "Connected" status
- [ ] The game is running with an active session (not in menus)
- [ ] Your browser isn't blocking popups (for login)
- [ ] You're using the correct Client ID
Common Issues
Login Keeps Redirecting
Symptoms: You log in successfully but keep getting redirected to login again.
Causes and fixes:
Redirect URL mismatch
- Your redirect URL in the Developer Hub must match exactly
- Check protocol:
httpvshttps - Check port:
localhost:3000vslocalhost:5173 - Check trailing slashes:
http://localhost:3000vshttp://localhost:3000/
Cookies blocked
- GameGlue uses cookies to maintain the session
- Check that third-party cookies aren't blocked
- Try in a private/incognito window to rule out extensions
OAuth callback not handled
- Make sure
isAuthenticated()is called on page load - This handles the OAuth callback when returning from login
- Make sure
javascript
// This must run on every page load
const isAuthed = await ggClient.isAuthenticated();No Data Received
Symptoms: Connected successfully but dashboard shows no data or stays at initial values.
Causes and fixes:
Game not running or paused
- Start a flight in MSFS (not just the main menu)
- Make sure the simulation isn't paused
Desktop Client not connected
- Open the GameGlue Desktop Client
- It should show "Connected" and the game name
Wrong game ID
- Verify you're using the correct game ID (e.g.,
msfsfor Microsoft Flight Simulator)
- Verify you're using the correct game ID (e.g.,
Field names incorrect
- Check that requested field names match exactly
- See MSFS Readable Data for valid field names
Connection Failed Error
Symptoms: Error message about connection failure.
Causes and fixes:
Network issues
- Check your internet connection
- Try refreshing the page
Client ID invalid
- Verify your Client ID in the Developer Hub
- Make sure you copied the full ID
Service temporarily unavailable
- GameGlue services may be undergoing maintenance
- Try again in a few minutes
Commands Not Working
Symptoms: Commands send but nothing happens in-game.
Causes and fixes:
- Missing write scope
- You need
msfs:writescope to send commands - Add it to your scopes array and log in again
- You need
javascript
scopes: ['msfs:read', 'msfs:write']Command not applicable
- Some commands only work in certain states
- Gear won't retract when on the ground
- Autopilot may not engage at low speeds
Game doesn't have focus
- Some commands require MSFS to be the active window
"Unauthorized" Errors
Symptoms: API returns 401 or "unauthorized" messages.
Causes and fixes:
Session expired
- Sessions can expire after inactivity
- Call
isAuthenticated()and handle re-login if needed
Wrong scopes
- If you need different permissions, log out and back in with updated scopes
Application not registered
- Verify your app exists in the Developer Hub
- Check that the Client ID matches
Debug Mode
Add console logging to help diagnose issues:
javascript
const listener = await ggClient.createListener({
userId: userId,
gameId: 'msfs',
fields: ['indicated_altitude']
});
listener.on('update', (evt) => {
console.log('Data received:', evt.data);
});
listener.on('error', (err) => {
console.error('Listener error:', err);
});
listener.on('disconnect', () => {
console.warn('Disconnected from GameGlue');
});Getting Help
If you're still stuck:
- Check the GameGlue Discord for community help
- Email support@gameglue.gg with:
- What you're trying to do
- The error message (if any)
- Your browser and OS
- Whether the Desktop Client shows "Connected"