Skip to main content
Logo
Explore APIsContact Us
  • Home
  • Match Preview
  • Tournament Preview
  • Virtual Stadium
  1. Resources
  2. Widgets
  3. Troubleshooting Common Widget Issues

Troubleshooting Common Widget Issues

#What Is Widget Troubleshooting?

Widget troubleshooting is the process of identifying, diagnosing, and resolving issues that occur during widget integration and runtime. Unlike error handling (which involves writing code to manage failures gracefully), troubleshooting focuses on finding the root cause of problems and implementing fixes.

This guide addresses the most common widget integration issues with visual symptoms, diagnostic steps, and proven solutions to get your widgets working correctly.

#Audience

This tutorial is for developers and integrators who are experiencing specific issues with Sportradar widgets and need step-by-step diagnostic guidance to identify and resolve problems. Whether you're encountering layout issues, missing content, or unexpected behavior, this guide will help you systematically diagnose and fix common widget problems.

#Goals

In this tutorial you will learn:

  • how to identify common widget integration issues by their symptoms
  • systematic diagnostic approaches for different problem types
  • step-by-step solutions for the most frequent widget problems
  • how to verify your fixes are working correctly
  • when to seek additional support for complex issues

#Prerequisites

In order to complete this tutorial you will need:

  • a website with Sportradar widgets integrated (or attempting to integrate)
  • access to browser developer tools (Chrome DevTools or Firefox Developer Tools)
  • ability to modify HTML, CSS, and JavaScript on your website
  • basic understanding of HTML, CSS, and JavaScript
  • a text editor of your choice

#Common Widget Issues Overview

This guide covers the following common issues:

IssueSymptomTypical Cause
Widget Not DisplayingNothing appears, container is emptyInitialization, configuration, or selector issues
Loading Indicator Disappears Too EarlyLoading indicator vanishes before widget loadsContent placed inside widget target container
Widget Showing ErrorsError icons or messages displayedConfiguration, data availability, or licensing issues
Widget Visibility in Carousels and SlidersComponents misaligned or incorrectly sizedCSS display property conflicts
ShadowDOM Integration IssuesWidget not rendering inside ShadowDOMIncorrect selector or missing styles
Widgets ThemingWidget appearance broken or inconsistentCSS conflicts with page styles

#Diagnostic Framework

Before diving into specific issues, follow this systematic diagnostic approach:

#Step 1: Check Browser Console

Always start by checking the browser console for error messages:

  1. Open Developer Tools (F12 or Ctrl+Shift+J / Cmd+Option+J)
  2. Navigate to the Console tab
  3. Look for red error messages
  4. Note any warnings (yellow messages)

#Step 2: Verify Network Requests

Check if all resources are loading successfully:

  1. Open the Network tab in Developer Tools
  2. Refresh the page
  3. Look for failed requests (shown in red)
  4. Check if the widgetloader script loaded successfully
  5. Verify widget data requests completed

#Step 3: Inspect DOM Elements

Examine the widget container in the page structure:

  1. Open the Elements/Inspector tab
  2. Find your widget container element
  3. Check if widget HTML was injected
  4. Verify styles are being applied

#Step 4: Test With Known Working Configuration

Isolate the issue by testing with a minimal, known-working setup:

html
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Widget Test</title>
</head>
<body>
    <div id="test-widget"></div>
    <script>
        (function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){
            (a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
            g=b.createElement(c),h=b.getElementsByTagName(c)[0],
            g.async=1,g.src=d,g.setAttribute("n",e),
            h.parentNode.insertBefore(g,h)
        )})(window,document,"script",
            "https://widgets.sir.sportradar.com/YOUR_CLIENT_ID/widgetloader",
            "SIR", { language: "en" }
        );
        
        SIR('addWidget', '#test-widget', 'match.scoreboard', {
            matchId: 43406689  // Known valid match ID
        });
    </script>
</body>
</html>

If this works, the issue is likely in your specific implementation.

#When to Seek Support

Some issues require assistance from Sportradar support. Contact support when:

  • You've followed all troubleshooting steps without success
  • You encounter generic error icons with no clear cause
  • You suspect a platform or data issue
  • You need clarification on licensing or account configuration
  • You discover what appears to be a bug in the widget

Before contacting support, gather:

  1. Your Client ID
  2. Widget name and configuration
  3. Browser console error messages
  4. Network tab screenshots showing failed requests
  5. Steps to reproduce the issue
  6. Expected vs. actual behavior

See Support for contact information and support channels.

#Further Reading

  • Error Handling Tutorial - Implementing robust error handling in your integration
  • Getting Started Guide - Basic widget integration steps
  • Widget Errors Reference - Complete list of widget error types
  • FAQ - Frequently asked questions and answers
  • Loading Indicator Guide - How to implement loading indicators
  • Carousel/Slider Guide - Fixing carousel and slider layout issues
  • ShadowDOM Integration - Complete ShadowDOM integration guide
  • SIR API Reference - Complete API documentation
  • Support - How to get help
Last updated 14 days ago
Is this site helpful?
Widgets, Engagement Tools
Getting HelpWidget Errors
On this page
  • What Is Widget Troubleshooting?
  • Audience
  • Goals
  • Prerequisites
  • Common Widget Issues Overview
  • Diagnostic Framework
  • Step 1: Check Browser Console
  • Step 2: Verify Network Requests
  • Step 3: Inspect DOM Elements
  • Step 4: Test With Known Working Configuration
  • When to Seek Support
  • Further Reading